-
Notifications
You must be signed in to change notification settings - Fork 0
175 lines (166 loc) · 5.04 KB
/
testing.yml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: Build
on:
push:
schedule:
- cron: "0 8 * * 0"
jobs:
GNU:
name: GNU ${{ matrix.gnu_ver }} (${{ matrix.build_type }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
gnu_ver: [13, 14]
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Install gfortran
run: |
sudo apt update
sudo apt install --no-install-recommends -y \
gfortran-${{ matrix.gnu_ver }} \
ninja-build \
libflint-dev
- name: Configuring
run: |
mkdir build
cd build
cmake .. \
-GNinja \
-DCMAKE_Fortran_COMPILER=gfortran-${{ matrix.gnu_ver }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBUILD_TESTS=ON
- name: Building
run: cmake --build build
- name: Testing
run: ctest --output-on-failure --test-dir build
- name: Running
run: |
cd build
mv input_example.dat input.dat
./main
./main cw
./main dw
./main dwb
MSYS2:
name: MSYS2/UCRT64 (${{ matrix.build_type }})
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: Install compiler
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
release: true
update: true
pacboy: fc:p cmake:p ninja:p flint:p
- name: Configuring
run: |
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBUILD_TESTS=ON
- name: Building
run: cmake --build build
- name: Testing
run: ctest --output-on-failure --test-dir build
- name: Running
run: |
cd build
mv input_example.dat input.dat
./main
./main cw
./main dw
./main dwb
Intel:
name: Intel (${{ matrix.build_type }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Intel compilers
run: |
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install --no-install-recommends -y \
intel-oneapi-compiler-fortran \
ninja-build \
libflint-dev
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- name: Configuring
run: |
mkdir build
cd build
cmake .. \
-GNinja \
-DCMAKE_Fortran_COMPILER=ifx \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBUILD_TESTS=ON
- name: Building
run: cmake --build build
- name: Testing
run: ctest --output-on-failure --test-dir build
- name: Running
run: |
cd build
mv input_example.dat input.dat
./main
./main cw
./main dw
./main dwb
Nvidia:
name: Nvidia (${{ matrix.build_type }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nvidia HPC Compiler
run: |
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update
sudo apt install --no-install-recommends -y \
nvhpc-24-7 \
ninja-build \
libflint-dev
echo "/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/compilers/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/compilers/lib" >> $GITHUB_ENV
- name: Configuring
run: |
mkdir build
cd build
cmake .. \
-GNinja \
-DCMAKE_Fortran_COMPILER=nvfortran \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBUILD_TESTS=ON
- name: Building
run: cmake --build build
- name: Testing
run: ctest --output-on-failure --test-dir build
- name: Running
run: |
cd build
mv input_example.dat input.dat
./main
./main cw
./main dw
./main dwb