-
Notifications
You must be signed in to change notification settings - Fork 47
82 lines (61 loc) · 2.18 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on: [push, pull_request]
# Fan out for the two compilers
# Fan out disabling on feature at a time -- too slow to do the full combo fan out
jobs:
main:
strategy:
fail-fast: false
matrix:
c-compiler: [gcc, clang]
config:
- os-image: ubuntu-latest
container: ubuntu:22.04
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_NON_INTEGER_LABELS'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_TAGS'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DUSEFULBUF_DISABLE_ALL_FLOAT'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_FLOAT_HW_USE'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_PREFERRED_FLOAT'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_CONFIG_DISABLE_EXP_AND_MANTISSA'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_ENCODE_USAGE_GUARDS'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_INDEFINITE_LENGTH_STRINGS'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_INDEFINITE_LENGTH_ARRAYS'
- os-image: ubuntu-latest
container: ubuntu:22.04
dis-xxx: '-DQCBOR_DISABLE_UNCOMMON_TAGS'
name: ${{ matrix.config.dis-xxx }} • ${{ matrix.c-compiler }} • ${{ matrix.config.container }}
runs-on: ${{ matrix.config.os-image }}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v3
- name: Install build tools
run: |
set -ex
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y build-essential cmake ${{ matrix.c-compiler }}
echo "CC=${{ matrix.c-compiler }}" >> $GITHUB_ENV
- name: Build QCBOR
run: |
set -ex
make warn CMD_LINE=${{ matrix.config.dis-xxx }}
- name: Run tests
run: ./qcbortest