-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (32 loc) · 1.05 KB
/
Copy pathtest-compile.yml
File metadata and controls
34 lines (32 loc) · 1.05 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
# Based on https://raw.githubusercontent.com/MonsterDruide1/OdysseyDecomp
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.13'
cache: 'pip'
- name: Set up python package dependencies
run: pip install toml
- name: Set up cache for toolchain
uses: actions/cache@v4
with:
key: clang-401
path: |
toolchain/clang-4.0.1
- name: Run simplified setup
run: python3 tools/setup.py --project
- name: Build project
run: python3 tools/build.py