Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/CIFindPackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
# KS: Make sure find package works on MaCh3 software
name: Find Package C

# 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:
- name: Find Package Alma9
container: ghcr.io/mach3-software/mach3:alma9v2.2.1
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON -DNuFastLinear_ENABLED=ON -DCUDAProb3Linear_ENABLED=ON -DCUDAProb3_ENABLED=ON -DProb3ppLinear_ENABLED=ON

- name: Find Package Rocky9 CUDA
container: ghcr.io/mach3-software/mach3:rocky9cudav2.2.0
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON -DNuFastLinear_ENABLED=ON -DCUDAProb3_ENABLED=ON -DProb3ppLinear_ENABLED=ON

name: ${{ matrix.name }}

container:
image: ${{ matrix.container }}

steps:
- uses: actions/checkout@v5

- name: Get MaCh3
env:
HEAD_REF: ${{ github.head_ref || github.ref_name }}
run: |
cd /opt/
git clone https://github.com/mach3-software/MaCh3.git MaCh3Core
cd MaCh3Core
git checkout "$HEAD_REF"
mkdir build
cd build
cmake ../ ${{ matrix.cmakeoptions }}
make -j4 install

- name: Get MaCh3 Tutorial
run: |
cd /opt/
git clone https://github.com/mach3-software/MaCh3Tutorial.git MaCh3Tutorial
cd MaCh3Tutorial
mkdir build
source /opt/MaCh3Core/build/bin/setup.MaCh3.sh
cd build
cmake ../ -DUse_External_MaCh3=TRUE
make -j4 install
source /opt/MaCh3Tutorial/build/bin/setup.MaCh3Tutorial.sh
Loading