Merge pull request #111 from mnovak42/finalXTR #218
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: cpu-build | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'docs/**' | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'docs/**' | |
branches: | |
- master | |
jobs: | |
ci: | |
name: ${{ matrix.version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ | |
geant4-v11.2.2, | |
geant4-v11.1.3, | |
geant4-v11.0.3, | |
geant4.10.07.p04, | |
geant4.10.06.p03, | |
] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get install libxerces-c-dev | |
- name: Install Geant4 | |
run: | | |
wget https://github.com/hahnjo/geant4-actions-binaries/releases/download/${{ matrix.version }}/${{ matrix.version }}-binaries.tar.gz | |
tar xf ${{ matrix.version }}-binaries.tar.gz -C $HOME | |
shell: bash | |
- name: Build & Test Debug | |
run: | | |
source ~/Geant4/bin/geant4.sh | |
cmake -E remove_directory build | |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON | |
cmake --build build | |
cd build && ctest -j2 --verbose --output-on-failure | |
- name: Build & Test Release | |
run: | | |
source ~/Geant4/bin/geant4.sh | |
cmake -E remove_directory build | |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON | |
cmake --build build | |
cd build && ctest -j2 --verbose --output-on-failure |