Merge pull request #490 from MichaelUnger/UF23 #52
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
name: crpropa-testing_OSX | |
on: [push, pull_request] | |
jobs: | |
mac: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- name: "macos-14" | |
os: macos-14 | |
cxx: "clang++" | |
cc: "clang" | |
fc: "gfortran-11" | |
swig_builtin: "On" #uses swig 4.0.2 | |
py: "/usr/bin/python3" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Preinstall | |
run: | | |
brew install hdf5 fftw cfitsio muparser libomp numpy swig | |
- name: Set up the build | |
env: | |
CXX: ${{ matrix.config.cxx }} | |
CC: ${{ matrix.config.cc }} | |
FC: ${{ matrix.config.fc }} | |
CRPROPA_DATA_PATH: "/Users/runner/work/CRPropa3/CRPropa3/build/data" | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DENABLE_PYTHON=True -DENABLE_TESTING=On -DENABLE_SWIG_BUILTIN=${{ matrix.config.swig_builtin }} -DSIMD_EXTENSIONS="none" | |
- name: Build CRPropa | |
run: | | |
cd build | |
make | |
- name: Run tests | |
env: | |
CRPROPA_DATA_PATH: "/Users/runner/work/CRPropa3/CRPropa3/build/data" | |
run: | | |
cd build | |
make test | |
- name: Archive test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "test-report_${{matrix.config.name}}" | |
path: build/Testing/Temporary/LastTest.log |