-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (50 loc) · 954 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
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:
linux:
strategy:
matrix:
cc: [gcc, clang]
runs-on: ubuntu-latest
env:
CC: ${{ matrix.cc }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt update && sudo apt-get install -y meson $CC
- name: Build
run: |
meson setup _build
cd _build
ninja
- name: Test
run: cd _build && meson test -v
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: brew install meson
- run: |
meson setup _build
cd _build
ninja
meson test -v