position dependent photon field for EM interactions (optimised) #11
Workflow file for this run
This file contains hidden or 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_ubuntu24 | |
| on: [push, pull_request] | |
| jobs: | |
| x64: | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - name: "ubuntu-24" | |
| os: ubuntu-24.04 | |
| cxx: "g++-14" | |
| cc: "gcc-14" | |
| fc: "gfortran-14" | |
| swig_builtin: "On" | |
| py: "/usr/bin/python3" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Preinstall | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libmuparser-dev python-dev-is-python3 libhdf5-serial-dev libomp5 libomp-dev libfftw3-dev libcfitsio-dev lcov | |
| pip install numpy | |
| - name: Set up the build | |
| env: | |
| CXX: ${{ matrix.config.cxx }} | |
| CC: ${{ matrix.config.cc }} | |
| FC: ${{ matrix.config.fc }} | |
| 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 | |
| run: | | |
| cd build | |
| make test | |
| - name: Archive test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "test-report_${{matrix.config.os}}" | |
| path: build/Testing/Temporary/LastTest.log | |
| arm: | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - name: "ubuntu-24" | |
| os: ubuntu-24.04-arm | |
| cxx: "g++-14" | |
| cc: "gcc-14" | |
| fc: "gfortran-14" | |
| swig_builtin: "On" | |
| py: "/usr/bin/python3" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Preinstall | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libmuparser-dev python-dev-is-python3 libhdf5-serial-dev libomp5 libomp-dev libfftw3-dev libcfitsio-dev lcov | |
| pip install numpy | |
| pip show numpy | |
| - name: Set up the build | |
| env: | |
| CXX: ${{ matrix.config.cxx }} | |
| CC: ${{ matrix.config.cc }} | |
| FC: ${{ matrix.config.fc }} | |
| 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 | |
| run: | | |
| cd build | |
| make test | |
| - name: Archive test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "test-report_${{matrix.config.os}}" | |
| path: build/Testing/Temporary/LastTest.log |