-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.38 KB
/
test-thread-pool.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
# This workflow will build and test the thread pool
name: Thread pool test
on:
push:
branches: '**'
pull_request:
branches: '**'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends make pkg-config build-essential
sudo apt-get install --no-install-recommends g++-14 clang-18
sudo apt-get install --no-install-recommends libglm-dev libglfw3-dev libglew-dev libstb-dev libassimp-dev
sudo apt-get install --no-install-recommends valgrind
- name: (g++) Test thread demo build target
run: |
make clean
CXX="g++-14" DEBUG="true" make threads -j$(nproc)
- name: (g++) Test built thread demo
run: |
./launch.sh --threads
- name: (g++) (valgrind) Test built thread demo
run: |
LD_LIBRARY_PATH=build valgrind --fair-sched=yes --leak-check=full --show-leak-kinds=all --error-exitcode=1 ./build/threadDemo
- name: (clang++) Test thread demo build target
run: |
make clean
CXX="clang++-18" DEBUG="true" make threads -j$(nproc)
- name: (clang++) (valgrind) Test built thread demo
run: |
LD_LIBRARY_PATH=build valgrind --fair-sched=yes --leak-check=full --show-leak-kinds=all --error-exitcode=1 ./build/threadDemo