-
-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (55 loc) · 1.81 KB
/
test-build-system.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
# This workflow will thoroughly test the build system
name: Complete build system 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 inkscape optipng
sudo apt-get install --no-install-recommends libglm-dev libglfw3-dev libglew-dev libstb-dev libassimp-dev
- name: Test icon generation target
run: |
make icons
- name: (g++) Test shared library build target
run: |
CXX="g++-14" make library -j$(nproc)
- name: (g++) Test demo build target
run: |
CXX="g++-14" make build -j$(nproc)
- name: (g++) Test debug demo build target
run: |
CXX="g++-14" make debug -j$(nproc)
- name: (g++) Check built objects are present
run: |
ls build/demo build/threadDemo build/libammonite.so
- name: Clean build area
run: |
make clean
- name: (clang++) Test shared library build target
run: |
CXX="clang++-18" make library -j$(nproc)
- name: (clang++) Test demo build target
run: |
CXX="clang++-18" make build -j$(nproc)
- name: (clang++) Test debug demo build target
run: |
CXX="clang++-18" make debug -j$(nproc)
- name: (clang++) Check built objects are present
run: |
ls build/demo build/threadDemo build/libammonite.so
- name: Test library install target
run: |
sudo make install
- name: Test headers install target
run: |
sudo make headers