-
Notifications
You must be signed in to change notification settings - Fork 27
35 lines (34 loc) · 1.08 KB
/
test-compile.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
name: testcompile
on: [push, pull_request]
jobs:
test_compile:
runs-on: ubuntu-24.04
steps:
- name: Check out project
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up dependencies
run: |
sudo apt update && sudo apt install -y ninja-build cmake ccache clang curl
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb && sudo dpkg -i libtinfo5_6.3-2_amd64.deb && rm -f libtinfo5_6.3-2_amd64.deb
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- name: Set up python package dependencies
run: pip install toml
- name: Set up cache for clang
uses: actions/cache@v4
with:
key: clang391-401
path: |
toolchain/clang-3.9.1
toolchain/clang-4.0.1
- name: Run simplified setup
run: tools/setup.py --project
- name: Create testing source files
run: bash ./.github/scripts/test-compile-create.sh
- name: Build project
run: tools/build.py