-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.07 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
# This workflow will test the build system (validate symlinks, index generator, cleaning, installing / uninstalling, full build)
name: Complete build system test
on:
push:
branches: '**'
pull_request:
branches: '**'
release:
types: [published]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install build dependencies
run: |
sudo apt-get install --no-install-recommends inkscape make optipng
- name: Check all symlinks are valid
run: |
make check
- name: Test index generator
run: |
make index
- name: Test clean target
run: |
make clean
- name: Test install and uninstall targets
run: |
sudo make install
sudo make uninstall
- name: Test reset target
run: |
make reset
- name: Test a complete fresh build
if: startsWith(github.ref, 'refs/tags/v')
run: |
make regen -j$(nproc)