3030 - config_set : ReverseMPI
3131 flags : ' -Denable-autodiff=true -Denable-normal=false -Denable-pywrapper=true -Denable-tests=true --warnlevel=3 --werror'
3232 - config_set : ForwardMPI
33- flags : ' -Denable-directdiff=true -Denable-normal=false -Denable-tests=true --warnlevel=3 --werror'
33+ flags : ' -Denable-directdiff=true -Denable-normal=false -Denable-tests=true -Denable-mlpcpp=true - -warnlevel=3 --werror'
3434 - config_set : BaseNoMPI
3535 flags : ' -Denable-pywrapper=true -Denable-openblas=true -Dwith-mpi=disabled -Denable-mlpcpp=true -Denable-tests=true --warnlevel=3 --werror'
3636 - config_set : ReverseNoMPI
@@ -46,29 +46,29 @@ jobs:
4646 runs-on : ${{ inputs.runner || 'ubuntu-latest' }}
4747 steps :
4848 - name : Cache Object Files
49- uses : actions/cache@v3
49+ uses : actions/cache@v4
5050 with :
5151 path : ccache
5252 key : ${{ matrix.config_set }}-${{ github.sha }}
5353 restore-keys : ${{ matrix.config_set }}
5454 - name : Pre Cleanup
55- uses : docker://ghcr.io/su2code/su2/build-su2:230813-0103
55+ uses : docker://ghcr.io/su2code/su2/build-su2:240320-1536
5656 with :
5757 entrypoint : /bin/rm
5858 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
5959 - name : Build
60- uses : docker://ghcr.io/su2code/su2/build-su2:230813-0103
60+ uses : docker://ghcr.io/su2code/su2/build-su2:240320-1536
6161 with :
6262 args : -b ${{github.ref}} -f "${{matrix.flags}}"
6363 - name : Compress binaries
6464 run : tar -zcvf install_bin.tgz install/*
6565 - name : Upload Binaries
66- uses : actions/upload-artifact@v3
66+ uses : actions/upload-artifact@v4
6767 with :
6868 name : ${{ matrix.config_set }}
6969 path : install_bin.tgz
7070 - name : Post Cleanup
71- uses : docker://ghcr.io/su2code/su2/build-su2:230813-0103
71+ uses : docker://ghcr.io/su2code/su2/build-su2:240320-1536
7272 with :
7373 entrypoint : /bin/rm
7474 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -89,29 +89,67 @@ jobs:
8989 runs-on : ${{ inputs.runner || 'ubuntu-latest' }}
9090 steps :
9191 - name : Cache Object Files
92- uses : actions/cache@v3
92+ uses : actions/cache@v4
9393 with :
9494 path : ccache
9595 key : ${{ matrix.config_set }}-${{ github.sha }}
9696 restore-keys : ${{ matrix.config_set }}
9797 - name : Pre Cleanup
98- uses : docker://ghcr.io/su2code/su2/build-su2-tsan:230813-0103
98+ uses : docker://ghcr.io/su2code/su2/build-su2-tsan:240320-1536
9999 with :
100100 entrypoint : /bin/rm
101101 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
102102 - name : Build
103- uses : docker://ghcr.io/su2code/su2/build-su2-tsan:230813-0103
103+ uses : docker://ghcr.io/su2code/su2/build-su2-tsan:240320-1536
104104 with :
105105 args : -b ${{github.ref}} -f "${{matrix.flags}}"
106106 - name : Compress binaries
107107 run : tar -zcvf install_bin.tgz install/*
108108 - name : Upload Binaries
109- uses : actions/upload-artifact@v3
109+ uses : actions/upload-artifact@v4
110110 with :
111111 name : ${{ matrix.config_set }}
112112 path : install_bin.tgz
113113 - name : Post Cleanup
114- uses : docker://ghcr.io/su2code/su2/build-su2-tsan:230813-0103
114+ uses : docker://ghcr.io/su2code/su2/build-su2-tsan:240320-1536
115+ with :
116+ entrypoint : /bin/rm
117+ args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
118+ build_asan :
119+ name : Build SU2 (asan)
120+ strategy :
121+ fail-fast : false
122+ matrix :
123+ config_set : [BaseNoMPI-asan, ReverseNoMPI-asan]
124+ include :
125+ - config_set : BaseNoMPI-asan
126+ flags : ' --buildtype=debugoptimized -Denable-openblas=true -Dwith-mpi=disabled -Denable-mlpcpp=true --warnlevel=3 --werror'
127+ - config_set : ReverseNoMPI-asan
128+ flags : ' --buildtype=debugoptimized -Denable-autodiff=true -Denable-normal=false -Dwith-mpi=disabled --warnlevel=3 --werror'
129+ runs-on : ${{ inputs.runner || 'ubuntu-latest' }}
130+ steps :
131+ - name : Cache Object Files
132+ uses : actions/cache@v4
133+ with :
134+ path : ccache
135+ key : ${{ matrix.config_set }}-${{ github.sha }}
136+ restore-keys : ${{ matrix.config_set }}
137+ - name : Pre Cleanup
138+ uses : docker://ghcr.io/su2code/su2/build-su2-asan:240320-1536
139+ with :
140+ entrypoint : /bin/rm
141+ args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
142+ - name : Build
143+ run : docker run --rm --cap-add SYS_PTRACE -v $(pwd):${{ github.workspace }} -w ${{ github.workspace }} ghcr.io/su2code/su2/build-su2-asan:240320-1536 -b ${{github.ref}} -f "${{matrix.flags}}"
144+ - name : Compress binaries
145+ run : tar -zcvf install_bin.tgz install/*
146+ - name : Upload Binaries
147+ uses : actions/upload-artifact@v4
148+ with :
149+ name : ${{ matrix.config_set }}
150+ path : install_bin.tgz
151+ - name : Post Cleanup
152+ uses : docker://ghcr.io/su2code/su2/build-su2-asan:240320-1536
115153 with :
116154 entrypoint : /bin/rm
117155 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -142,12 +180,12 @@ jobs:
142180 tag : OMP
143181 steps :
144182 - name : Pre Cleanup
145- uses : docker://ghcr.io/su2code/su2/test-su2:230813-0103
183+ uses : docker://ghcr.io/su2code/su2/test-su2:240320-1536
146184 with :
147185 entrypoint : /bin/rm
148186 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
149187 - name : Download All artifacts
150- uses : actions/download-artifact@v3
188+ uses : actions/download-artifact@v4
151189 - name : Uncompress and Move Binaries
152190 run : |
153191 BIN_FOLDER="$PWD/install/bin"
@@ -168,12 +206,12 @@ jobs:
168206 chmod a+x $BIN_FOLDER/*
169207 ls -lahR $BIN_FOLDER
170208 - name : Run Tests in Container
171- uses : docker://ghcr.io/su2code/su2/test-su2:230813-0103
209+ uses : docker://ghcr.io/su2code/su2/test-su2:240320-1536
172210 with :
173211 # -t <Tutorials-branch> -c <Testcases-branch>
174212 args : -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}}
175213 - name : Cleanup
176- uses : docker://ghcr.io/su2code/su2/test-su2:230813-0103
214+ uses : docker://ghcr.io/su2code/su2/test-su2:240320-1536
177215 with :
178216 entrypoint : /bin/rm
179217 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -188,12 +226,12 @@ jobs:
188226 testscript : ['hybrid_regression.py', 'hybrid_regression_AD.py']
189227 steps :
190228 - name : Pre Cleanup
191- uses : docker://ghcr.io/su2code/su2/test-su2-tsan:230813-0103
229+ uses : docker://ghcr.io/su2code/su2/test-su2-tsan:240320-1536
192230 with :
193231 entrypoint : /bin/rm
194232 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
195233 - name : Download All artifacts
196- uses : actions/download-artifact@v3
234+ uses : actions/download-artifact@v4
197235 - name : Uncompress and Move Binaries
198236 run : |
199237 BIN_FOLDER="$PWD/install/bin"
@@ -214,12 +252,57 @@ jobs:
214252 chmod a+x $BIN_FOLDER/*
215253 ls -lahR $BIN_FOLDER
216254 - name : Run Tests in Container
217- uses : docker://ghcr.io/su2code/su2/test-su2-tsan:230813-0103
255+ uses : docker://ghcr.io/su2code/su2/test-su2-tsan:240320-1536
218256 with :
219257 # -t <Tutorials-branch> -c <Testcases-branch>
220258 args : -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}} -a "--tsan"
221259 - name : Cleanup
222- uses : docker://ghcr.io/su2code/su2/test-su2-tsan:230813-0103
260+ uses : docker://ghcr.io/su2code/su2/test-su2-tsan:240320-1536
261+ with :
262+ entrypoint : /bin/rm
263+ args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
264+ address_sanitizer_tests :
265+ runs-on : ${{ inputs.runner || 'ubuntu-latest' }}
266+ name : Address Sanitizer Tests
267+ needs : build_asan
268+ strategy :
269+ fail-fast : false
270+ matrix :
271+ testscript : ['serial_regression.py', 'serial_regression_AD.py']
272+ steps :
273+ - name : Pre Cleanup
274+ uses : docker://ghcr.io/su2code/su2/test-su2-asan:240320-1536
275+ with :
276+ entrypoint : /bin/rm
277+ args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
278+ - name : Download All artifacts
279+ uses : actions/download-artifact@v4
280+ - name : Uncompress and Move Binaries
281+ run : |
282+ BIN_FOLDER="$PWD/install/bin"
283+ mkdir -p $BIN_FOLDER
284+ ls -lah $BIN_FOLDER
285+ for type in Base Reverse Forward; do
286+ TYPE_FOLDER="${type}NoMPI-asan"
287+ echo "Processing '$TYPE_FOLDER' ..."
288+ if [ -d $TYPE_FOLDER ]; then
289+ pushd $TYPE_FOLDER
290+ ls -lah
291+ tar -zxvf install_bin.tgz
292+ ls -lah install/bin/
293+ cp -r install/* $BIN_FOLDER/../
294+ popd;
295+ fi
296+ done
297+ chmod a+x $BIN_FOLDER/*
298+ ls -lahR $BIN_FOLDER
299+ - name : Run Tests in Container
300+ uses : docker://ghcr.io/su2code/su2/test-su2-asan:240320-1536
301+ with :
302+ # -t <Tutorials-branch> -c <Testcases-branch>
303+ args : -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}} -a "--asan"
304+ - name : Cleanup
305+ uses : docker://ghcr.io/su2code/su2/test-su2-asan:240320-1536
223306 with :
224307 entrypoint : /bin/rm
225308 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -240,22 +323,22 @@ jobs:
240323 tag : MPI
241324 steps :
242325 - name : Pre Cleanup
243- uses : docker://ghcr.io/su2code/su2/test-su2:230813-0103
326+ uses : docker://ghcr.io/su2code/su2/test-su2:240320-1536
244327 with :
245328 entrypoint : /bin/rm
246329 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
247330 - name : Download Base
248- uses : actions/download-artifact@v3
331+ uses : actions/download-artifact@v4
249332 with :
250333 name : ${{format('Base{0}', matrix.tag)}}
251334 path : ${{format('Base{0}', matrix.tag)}}
252335 - name : Download Reverse
253- uses : actions/download-artifact@v3
336+ uses : actions/download-artifact@v4
254337 with :
255338 name : ${{format('Reverse{0}', matrix.tag)}}
256339 path : ${{format('Reverse{0}', matrix.tag)}}
257340 - name : Download Forward
258- uses : actions/download-artifact@v3
341+ uses : actions/download-artifact@v4
259342 with :
260343 name : ${{format('Forward{0}', matrix.tag)}}
261344 path : ${{format('Forward{0}', matrix.tag)}}
@@ -301,11 +384,11 @@ jobs:
301384 echo $PWD
302385 ls -lahR
303386 - name : Run Unit Tests
304- uses : docker://ghcr.io/su2code/su2/test-su2:230813-0103
387+ uses : docker://ghcr.io/su2code/su2/test-su2:240320-1536
305388 with :
306389 entrypoint : install/bin/${{matrix.testdriver}}
307390 - name : Post Cleanup
308- uses : docker://ghcr.io/su2code/su2/test-su2:230813-0103
391+ uses : docker://ghcr.io/su2code/su2/test-su2:240320-1536
309392 with :
310393 entrypoint : /bin/rm
311394 args : -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
0 commit comments