-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (54 loc) · 989 Bytes
/
c-cpp.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
49
50
51
52
53
54
55
56
57
58
name: C/C++ CI
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: trunk
paths:
- '**'
- '!**.md'
- '!docs/**'
- '!**.yml'
- '**/c-cpp.yml'
pull_request:
branches: trunk
paths:
- '**'
- '!**.md'
- '!docs/**'
- '!**.yml'
- '**/c-cpp.yml'
jobs:
ubuntu-focal:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y meson
- run: |
meson _build
cd _build
ninja
meson test -v
ubuntu-jammy:
runs-on: ubuntu-22.04
env:
CC: 'gcc-12'
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y meson $CC
- run: |
meson _build
cd _build
ninja
meson test -v
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: brew install meson
- run: |
meson _build
cd _build
ninja
ninja test