-
Notifications
You must be signed in to change notification settings - Fork 78
93 lines (92 loc) · 2.76 KB
/
testing_ubuntu24.yml
File metadata and controls
93 lines (92 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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