-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (33 loc) · 1.08 KB
/
build.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
name: Build/Test
on:
push:
branches:
- '*'
- '!gh-pages'
paths-ignore:
- 'kernel_module/**'
pull_request:
branches: [ master ]
jobs:
build:
if: "!(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))"
name: ${{ join(matrix.*, '/') }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ startsWith(matrix.os, 'macos-') || (matrix.os == 'ubuntu-24.04') }}
env:
CC: ${{ matrix.cc }}
strategy:
matrix:
os: ['ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-22.04', 'macos-12', 'macos-13', 'macos-14']
cc: ['gcc', 'clang']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies (Ubuntu)
run: ./.github/scripts/install-dependencies-ubuntu.sh
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
- name: Install dependencies (MacOS)
run: ./.github/scripts/install-dependencies-macos.sh
if: ${{ startsWith(matrix.os, 'macos-') }}
- name: Build and Test
run: ./.github/scripts/build-and-test.sh