This repository was archived by the owner on Jun 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.98 KB
/
checks.yml
File metadata and controls
48 lines (44 loc) · 1.98 KB
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
name: Maintenance checks
on:
pull_request:
paths:
- '.github/workflows/**'
- 'src/**'
- 'include/**'
- 'Makefile'
- 'scripts/format.sh'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Don't fail on empty include (not tracked by git)
- run: if ! [ -d include ]; then mkdir include; fi
- run: sudo apt update && sudo apt install -y libglfw3-dev libglm-dev libgl-dev libtinyxml2-dev
- run: make -j$(nproc)
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Don't fail on empty include (not tracked by git)
- run: if ! [ -d include ]; then mkdir include; fi
- run: >-
sudo apt update &&
sudo apt install -y wget &&
wget https://apt.llvm.org/llvm.sh &&
chmod a+x llvm.sh &&
sudo ./llvm.sh 19 &&
(sudo rm /usr/bin/clang-format || exit 0) &&
sudo apt install -y clang-format-19 &&
sudo ln -sf "$(command -v clang-format-19)" /usr/bin/clang-format
- run: ./scripts/format.sh --check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# clang-format doesn't come with act's local images. This is just for testing, as
# scripts contain
- run: sudo apt update && sudo apt -y install cppcheck
# Don't fail on empty include (not tracked by git)
- run: if ! [ -d include ]; then mkdir include; fi
- run: make cppcheck