-
Notifications
You must be signed in to change notification settings - Fork 3
173 lines (162 loc) · 5.07 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
name: Github actions
on:
push:
schedule:
- cron: '0 2 * * 1'
jobs:
Debian:
name: Debian
runs-on: ubuntu-latest
container: ghcr.io/mehdichinoune/debian-gfortran-testing:${{ matrix.image_type }}
strategy:
fail-fast: false
matrix:
image_type: [old, stable, trunk]
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Configuring
run: |
cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DPFUNIT_DIR=/opt/pfunit/PFUNIT-4.9/cmake \
-S . \
-B build
- name: Building
run: cmake --build build -j$(nproc)
- name: Testing
run: |
cd build
ctest -j $(nproc) --output-on-failure
Ubuntu:
name: Ubuntu gcc-${{ 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 }} \
make
- name: Configuring
run: |
cmake \
-DCMAKE_Fortran_COMPILER=gfortran-${{ matrix.gnu_ver }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-B build \
-S .
- name: Building
run: cmake --build build -j5
- name: Testing
run: |
cd build
ctest -j $(nproc) --output-on-failure
MSYS2:
name: MSYS2-${{ matrix.msystem }}-${{ matrix.build_type }}
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
msystem: [UCRT64, CLANG64]
build_type: [Debug, Release]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: Install compiler
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
release: false
update: true
install: make
pacboy: fc:p cc:p openblas:p cmake:p
- name: Configuring
run: |
cmake \
-G"Unix Makefiles" \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-B build \
-S .
- name: Building
run: cmake --build build -j5
- name: Testing
run: |
cd build
ctest -j $(nproc) --output-on-failure
Intel:
name: Intel ${{ matrix.compiler }}-${{ 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 \
intel-oneapi-mkl-devel \
make
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- name: Configuring
run: |
cmake \
-DCMAKE_Fortran_COMPILER=ifx \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBLA_VENDOR=Intel10_64lp \
-B build \
-S .
- name: Building
run: cmake --build build -j5
- name: Testing
run: |
cd build
ctest -j $(nproc) --output-on-failure
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-11 \
make
echo "/opt/nvidia/hpc_sdk/Linux_x86_64/24.11/compilers/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.11/compilers/lib" >> $GITHUB_ENV
- name: Configuring
run: |
cmake \
-DCMAKE_Fortran_COMPILER=nvfortran \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-B build \
-S .
- name: Building
run: cmake --build build -j5
- name: Testing
run: |
cd build
ctest -j $(nproc) --output-on-failure