6161 -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
6262 -G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
6363 -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
64- -D CMAKE_BUILD_TYPE=RELEASE
64+ -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
6565 env :
6666 CC : gcc-14
6767 CXX : g++-14
7676 env :
7777 CC : gcc-14
7878 CXX : g++-14
79+ - name : Install project
80+ run : |
81+ cmake --build build --target install
82+ - name : Upload installed package
83+ 84+ with :
85+ name : ubuntu-gcc-install
86+ path : install
87+ ubuntu-gcc-test :
88+ needs :
89+ - ubuntu-gcc-build
90+ runs-on : ubuntu-latest
91+ steps :
92+ - uses : actions/checkout@v4
93+ with :
94+ submodules : recursive
95+ - name : Setup environment
96+ run : |
97+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
98+ sudo apt-get update
99+ sudo apt-get install gcc-14 g++-14
100+ sudo apt-get install ninja-build
101+ sudo apt-get install mpich
102+ sudo apt-get install libomp-dev
103+ sudo apt-get install valgrind
104+ python3 -m pip install -r requirements.txt
105+ - name : Download installed package
106+ uses : actions/download-artifact@v4
107+ with :
108+ name : ubuntu-gcc-install
109+ path : install
110+ - name : Add install/bin to PATH
111+ run : echo "$(pwd)/install/bin" >> $GITHUB_PATH
79112 - name : Run func tests (MPI, num_proc=1)
80113 run : |
81114 source scripts/run_mpi.sh
@@ -116,9 +149,9 @@ jobs:
116149 run : source scripts/run_threads.sh
117150 env :
118151 OMP_NUM_THREADS : 4
119- ubuntu-gcc-build -extended :
152+ ubuntu-gcc-test -extended :
120153 needs :
121- - ubuntu-gcc-build
154+ - ubuntu-gcc-test
122155 runs-on : ubuntu-latest
123156 steps :
124157 - uses : actions/checkout@v4
@@ -134,28 +167,14 @@ jobs:
134167 sudo apt-get install libomp-dev
135168 sudo apt-get install valgrind
136169 python3 -m pip install -r requirements.txt
137- - name : ccache
138- uses :
hendrikmuhs/[email protected] 170+
171+ - name : Download installed package
172+ uses : actions/download-artifact@v4
139173 with :
140- key : ${{ github.job }}
141- create-symlink : true
142- max-size : 1G
143- - name : CMake configure
144- run : >
145- cmake -S . -B build
146- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
147- -G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
148- -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
149- -D CMAKE_BUILD_TYPE=RELEASE
150- env :
151- CC : gcc-14
152- CXX : g++-14
153- - name : Build project
154- run : |
155- cmake --build build --parallel
156- env :
157- CC : gcc-14
158- CXX : g++-14
174+ name : ubuntu-gcc-install
175+ path : install
176+ - name : Add install/bin to PATH
177+ run : echo "$(pwd)/install/bin" >> $GITHUB_PATH
159178 - name : Run func tests (threads, num_threads=5)
160179 run : source scripts/run_threads.sh
161180 env :
@@ -229,6 +248,8 @@ jobs:
229248 env :
230249 CC : clang-19
231250 CXX : clang++-19
251+ - name : Add build/bin to PATH
252+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
232253 - name : Run func tests (MPI, num_proc=1)
233254 run : |
234255 source scripts/run_mpi.sh
@@ -309,6 +330,8 @@ jobs:
309330 env :
310331 CC : clang-19
311332 CXX : clang++-19
333+ - name : Add build/bin to PATH
334+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
312335 - name : Run tests (threads, num_threads=5)
313336 run : source scripts/run_threads.sh
314337 env :
@@ -381,6 +404,8 @@ jobs:
381404 env :
382405 CC : clang-19
383406 CXX : clang++-19
407+ - name : Add build/bin to PATH
408+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
384409 - name : Run tests (MPI)
385410 run : |
386411 source scripts/run_mpi.sh "--oversubscribe"
@@ -458,6 +483,8 @@ jobs:
458483 env :
459484 CC : clang-19
460485 CXX : clang++-19
486+ - name : Add build/bin to PATH
487+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
461488 - name : Run tests (threads, num_threads=5)
462489 run : source scripts/run_threads.sh
463490 env :
@@ -531,6 +558,8 @@ jobs:
531558 - name : Build project
532559 run : |
533560 cmake --build build --parallel
561+ - name : Add build/bin to PATH
562+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
534563 - name : Run func tests (MPI, num_proc=1)
535564 run : |
536565 source scripts/run_mpi.sh
@@ -603,6 +632,8 @@ jobs:
603632 - name : Build project
604633 run : |
605634 cmake --build build --parallel
635+ - name : Add build/bin to PATH
636+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
606637 - name : Run tests (threads, num_threads=5)
607638 run : source scripts/run_threads.sh
608639 env :
@@ -899,7 +930,7 @@ jobs:
899930 CLANG_BUILD : 1
900931 ubuntu-gcc-build-codecov :
901932 needs :
902- - ubuntu-gcc-build -extended
933+ - ubuntu-gcc-test -extended
903934 - ubuntu-clang-build-extended
904935 - macos-clang-build-extended
905936 runs-on : ubuntu-latest
@@ -934,6 +965,8 @@ jobs:
934965 - name : Build project
935966 run : |
936967 cmake --build build --parallel
968+ - name : Add build/bin to PATH
969+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
937970 - name : Run tests (MPI)
938971 run : |
939972 source scripts/run_mpi.sh
@@ -1025,6 +1058,8 @@ jobs:
10251058 env :
10261059 CC : gcc-14
10271060 CXX : g++-14
1061+ - name : Add build/bin to PATH
1062+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
10281063 - name : Run perf count checker
10291064 run : |
10301065 source scripts/run_perf_count_checker.sh
0 commit comments