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 : Upload installed package
80+ uses : actions/upload-artifact@v4.3.0
81+ with :
82+ name : ubuntu-gcc-install
83+ path : install
84+ ubuntu-gcc-test :
85+ needs :
86+ - ubuntu-gcc-build
87+ runs-on : ubuntu-latest
88+ steps :
89+ - uses : actions/checkout@v4
90+ with :
91+ submodules : recursive
92+ - name : Setup environment
93+ run : |
94+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
95+ sudo apt-get update
96+ sudo apt-get install gcc-14 g++-14
97+ sudo apt-get install ninja-build
98+ sudo apt-get install mpich
99+ sudo apt-get install libomp-dev
100+ sudo apt-get install valgrind
101+ python3 -m pip install -r requirements.txt
102+ - name : Download installed package
103+ uses : actions/download-artifact@v3
104+ with :
105+ name : ubuntu-gcc-install
106+ path : install
107+ - name : Add install/bin to PATH
108+ run : echo "$(pwd)/install/bin" >> $GITHUB_PATH
79109 - name : Run func tests (MPI, num_proc=1)
80110 run : |
81111 source scripts/run_mpi.sh
@@ -116,9 +146,9 @@ jobs:
116146 run : source scripts/run_threads.sh
117147 env :
118148 OMP_NUM_THREADS : 4
119- ubuntu-gcc-build -extended :
149+ ubuntu-gcc-test -extended :
120150 needs :
121- - ubuntu-gcc-build
151+ - ubuntu-gcc-test
122152 runs-on : ubuntu-latest
123153 steps :
124154 - uses : actions/checkout@v4
@@ -134,28 +164,14 @@ jobs:
134164 sudo apt-get install libomp-dev
135165 sudo apt-get install valgrind
136166 python3 -m pip install -r requirements.txt
137- - name : ccache
138- uses : hendrikmuhs/ccache-action@v1.2
167+
168+ - name : Download installed package
169+ uses : actions/download-artifact@v3
139170 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
171+ name : ubuntu-gcc-install
172+ path : install
173+ - name : Add install/bin to PATH
174+ run : echo "$(pwd)/install/bin" >> $GITHUB_PATH
159175 - name : Run func tests (threads, num_threads=5)
160176 run : source scripts/run_threads.sh
161177 env :
@@ -229,6 +245,8 @@ jobs:
229245 env :
230246 CC : clang-19
231247 CXX : clang++-19
248+ - name : Add build/bin to PATH
249+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
232250 - name : Run func tests (MPI, num_proc=1)
233251 run : |
234252 source scripts/run_mpi.sh
@@ -309,6 +327,8 @@ jobs:
309327 env :
310328 CC : clang-19
311329 CXX : clang++-19
330+ - name : Add build/bin to PATH
331+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
312332 - name : Run tests (threads, num_threads=5)
313333 run : source scripts/run_threads.sh
314334 env :
@@ -381,6 +401,8 @@ jobs:
381401 env :
382402 CC : clang-19
383403 CXX : clang++-19
404+ - name : Add build/bin to PATH
405+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
384406 - name : Run tests (MPI)
385407 run : |
386408 source scripts/run_mpi.sh "--oversubscribe"
@@ -458,6 +480,8 @@ jobs:
458480 env :
459481 CC : clang-19
460482 CXX : clang++-19
483+ - name : Add build/bin to PATH
484+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
461485 - name : Run tests (threads, num_threads=5)
462486 run : source scripts/run_threads.sh
463487 env :
@@ -531,6 +555,8 @@ jobs:
531555 - name : Build project
532556 run : |
533557 cmake --build build --parallel
558+ - name : Add build/bin to PATH
559+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
534560 - name : Run func tests (MPI, num_proc=1)
535561 run : |
536562 source scripts/run_mpi.sh
@@ -603,6 +629,8 @@ jobs:
603629 - name : Build project
604630 run : |
605631 cmake --build build --parallel
632+ - name : Add build/bin to PATH
633+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
606634 - name : Run tests (threads, num_threads=5)
607635 run : source scripts/run_threads.sh
608636 env :
@@ -899,7 +927,7 @@ jobs:
899927 CLANG_BUILD : 1
900928 ubuntu-gcc-build-codecov :
901929 needs :
902- - ubuntu-gcc-build -extended
930+ - ubuntu-gcc-test -extended
903931 - ubuntu-clang-build-extended
904932 - macos-clang-build-extended
905933 runs-on : ubuntu-latest
@@ -934,6 +962,8 @@ jobs:
934962 - name : Build project
935963 run : |
936964 cmake --build build --parallel
965+ - name : Add build/bin to PATH
966+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
937967 - name : Run tests (MPI)
938968 run : |
939969 source scripts/run_mpi.sh
@@ -1025,6 +1055,8 @@ jobs:
10251055 env :
10261056 CC : gcc-14
10271057 CXX : g++-14
1058+ - name : Add build/bin to PATH
1059+ run : echo "$(pwd)/build/bin" >> $GITHUB_PATH
10281060 - name : Run perf count checker
10291061 run : |
10301062 source scripts/run_perf_count_checker.sh
0 commit comments