Feature/dbarrow257/osc prob #375
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check if MaCh3 compiles correctly | |
name: Build CI | |
# The events that trigger the workflow | |
on: | |
pull_request: | |
branches: [ develop ] | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # KS: Prevents cancellation of remaining jobs if one fails | |
matrix: | |
include: | |
- os: Alma9 | |
file: Doc/MaCh3DockerFiles/Alma9/Dockerfile | |
tag: alma9latest | |
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON | |
- os: Ubuntu22.04 Debug | |
file: Doc/MaCh3DockerFiles/Ubuntu22.04/Dockerfile | |
tag: ubuntu22.04latest | |
cmakeoptions: -DMaCh3_DEBUG_ENABLED=ON -DMaCh3_PYTHON_ENABLED=ON | |
- os: Fedora32 Low Memory | |
file: Doc/MaCh3DockerFiles/Fedora32/Dockerfile | |
tag: fedora32latest | |
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON -DMaCh3_LOW_MEMORY_STRUCTS_ENABLED=ON | |
- os: Rocky9 CUDA | |
file: Doc/MaCh3DockerFiles/Rocky9/Dockerfile | |
tag: rocky9latest | |
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON | |
name: Build CI ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to GitHub Container Registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Build the Docker image | |
run: docker build . --file ${{ matrix.file }} --tag ghcr.io/${{ github.repository_owner }}/mach3:${{ matrix.tag }} --build-arg MACH3_VERSION=${{ github.head_ref }} --build-arg CMAKE_OPTIONS="${{ matrix.cmakeoptions }}" |