-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 970 Bytes
/
c2.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
name: C (2)
on:
push:
branches: [ main, staging, trying ]
paths:
- 'c2/**'
- '.github/workflows/c2.yml'
pull_request:
branches: [ main, staging, trying ]
paths:
- 'c2/**'
- '.github/workflows/c2.yml'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: c2
steps:
- uses: actions/checkout@v3
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install Meson
run: 'pip install meson'
- name: Configure project
run: 'meson setup build -Dbuildtype=release'
- name: Build project
run: 'meson compile -C build'
- name: Test project
run: 'meson test -v -C build'
ci-success:
name: ci
if: ${{ success() }}
needs:
- build
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0