-
Notifications
You must be signed in to change notification settings - Fork 10
78 lines (70 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
78 lines (70 loc) · 1.99 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI
on: [push, pull_request]
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
whitespace-errors:
name: Check for whitespace errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: check
run: git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904
build-check:
strategy:
fail-fast: false
matrix:
cc:
- gcc-14
- gcc-13
- gcc-12
- gcc-11
- gcc-10
- gcc-9
- clang-19
- clang-18
- clang-17
- clang-16
- clang-15
- clang-14
- musl-gcc
target: [x86_64, x86]
variant: [base, debug, log]
exclude:
- cc: musl-gcc
target: x86
variant: base
- cc: musl-gcc
target: x86
variant: debug
- cc: musl-gcc
target: x86
variant: log
name: Build ${{ matrix.cc }}-${{ matrix.target }}-${{ matrix.variant }}
runs-on: ubuntu-latest
env:
CC: ${{ matrix.cc }}
TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Set environment variables
env:
VARIANT: ${{ matrix.variant }}
run: |
case "$VARIANT" in
base) ;;
debug) echo 'CPPFLAGS=-DUTEMPTER_DEBUG' >> "$GITHUB_ENV" ;;
log) echo 'CPPFLAGS=-DUTEMPTER_LOG' >> "$GITHUB_ENV" ;;
*) echo "Unknown variant: $VARIANT" >&2; exit 1 ;;
esac
- name: Install dependencies
run: ci/install-dependencies.sh
- name: Build check
run: ci/run-build-and-tests.sh