-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (39 loc) · 1.1 KB
/
Copy pathcompile-cpp.yml
File metadata and controls
51 lines (39 loc) · 1.1 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
49
50
name: Compile BioImage DSL and run unit tests
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- name: Install C++ toolchain
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential libboost-fiber-dev libasio-dev
version: 1.0
- name: Install Python dependencies
run: |
pip install --upgrade uv
uv pip install --system meson ninja
- name: Cache 3rd party C++ projects
uses: actions/cache@v3
with:
key: meson-cache
path: subprojects/packagecache/
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-ccache
- name: Resolve C++ build dependencies
run: meson setup build/
- name: Build everything
run: ninja -C build/ all
- name: Test everything
run: ninja -C build/ test