-
Notifications
You must be signed in to change notification settings - Fork 0
186 lines (177 loc) · 6.02 KB
/
Copy pathtesting.yml
File metadata and controls
186 lines (177 loc) · 6.02 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
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
176
177
178
179
180
181
182
183
184
185
186
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: [14, 15, 16]
build_type: [Debug, Release, Fast]
steps:
- uses: actions/checkout@v6
- name: Install gfortran
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
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 }} \
-DTDCS_TARGET_NATIVE=ON \
-DTDCS_BUILD_TESTS=ON \
-DTDCS_BUILD_SLOW_TESTS=$([[ ${{ matrix.build_type }} == Debug ]] && echo "OFF" || echo "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 fdcs pw
./main fdcs cw
./main fdcs dw
./main fdcs dwb
MSYS2:
name: MSYS2/${{ matrix.msystem }} (${{ matrix.build_type }})
runs-on: windows-2025
strategy:
fail-fast: false
matrix:
msystem: [UCRT64, CLANG64]
build_type: [Debug, Release, Fast]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v6
- name: Install compiler
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
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 }} \
-DTDCS_TARGET_NATIVE=ON \
-DTDCS_BUILD_TESTS=ON \
-DTDCS_BUILD_SLOW_TESTS=$([[ ${{ matrix.build_type }} == Debug ]] && echo "OFF" || echo "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 fdcs pw
./main fdcs cw
./main fdcs dw
./main fdcs dwb
Intel:
name: Intel (${{ matrix.build_type }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release, Fast]
steps:
- name: Checkout
uses: actions/checkout@v6
- 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 }} \
-DTDCS_TARGET_NATIVE=ON \
-DTDCS_BUILD_TESTS=ON \
-DTDCS_BUILD_SLOW_TESTS=$([[ ${{ matrix.build_type }} == Debug ]] && echo "OFF" || echo "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 fdcs pw
./main fdcs cw
./main fdcs dw
./main fdcs dwb
Nvidia:
name: Nvidia (${{ matrix.build_type }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release, Fast]
steps:
- name: Checkout
uses: actions/checkout@v6
- 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-26-3 \
ninja-build \
libflint-dev
find /opt/nvidia/hpc_sdk/Linux_x86_64/26.3 -maxdepth 3 \( -name lib -o -name lib64 \) | sort
echo "/opt/nvidia/hpc_sdk/Linux_x86_64/26.3/compilers/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/26.3/compilers/lib:/opt/nvidia/hpc_sdk/Linux_x86_64/26.3//math_libs/lib" >> $GITHUB_ENV
- name: Configuring
run: |
mkdir build
cd build
cmake .. \
-GNinja \
-DCMAKE_Fortran_COMPILER=nvfortran \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DTDCS_TARGET_NATIVE=ON \
-DTDCS_BUILD_TESTS=ON \
-DTDCS_BUILD_SLOW_TESTS=$([[ ${{ matrix.build_type }} == Debug ]] && echo "OFF" || echo "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 fdcs pw
./main fdcs cw
./main fdcs dw
./main fdcs dwb