-
Notifications
You must be signed in to change notification settings - Fork 119
48 lines (41 loc) · 1.12 KB
/
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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: ['ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04', 'macos-13', 'windows-2022']
build-system: ['autotools', 'meson']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout audacious
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
os: ${{ matrix.os }}
build-system: ${{ matrix.build-system }}
- name: Configure
uses: ./.github/actions/run-action
with:
action: 'configure'
os: ${{ matrix.os }}
build-system: ${{ matrix.build-system }}
- name: Build
uses: ./.github/actions/run-action
with:
action: 'build'
os: ${{ matrix.os }}
build-system: ${{ matrix.build-system }}
- name: Test
if: startsWith(matrix.os, 'ubuntu')
uses: ./.github/actions/run-action
with:
action: 'test'
os: ${{ matrix.os }}
build-system: ${{ matrix.build-system }}