-
Notifications
You must be signed in to change notification settings - Fork 22
65 lines (60 loc) · 1.51 KB
/
ci.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
59
60
61
62
63
64
65
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
jobs:
test-linux:
name: Test Linux ${{ matrix.CC }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
# Clang 18.1.3 or later works
- CC: clang-18
CXX: clang++-18
CXXFLAGS: -stdlib=libc++
- CC: gcc-14
CXX: g++-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install build dependencies
run: sudo apt-get install ninja-build libc++-18-dev libc++abi-18-dev
- name: Run test script
timeout-minutes: 30
run: ./test-all.sh
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
CXXFLAGS: ${{ matrix.CXXFLAGS }}
test-windows:
name: Test Windows
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Run test script
timeout-minutes: 30
run: ./test-all.ps1
test-macos:
name: Test macOS
runs-on: macos-14
env:
CC: /opt/homebrew/opt/llvm@18/bin/clang
CXX: /opt/homebrew/opt/llvm@18/bin/clang++
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install build dependencies
run: brew install ninja llvm@18
- name: Run test script
timeout-minutes: 30
run: ./test-all.sh