-
Notifications
You must be signed in to change notification settings - Fork 96
165 lines (155 loc) · 4.34 KB
/
test.yaml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: test
on: [push, pull_request]
env:
BUILDDIR: "builddir"
INSTALLDIR: "installdir"
RUNUSER: "user"
jobs:
autotools:
runs-on: ubuntu-latest
env:
BUILD_OPTS: --enable-doc
DISTCHECK: true
container:
image: ghcr.io/p11-glue/p11-kit:master
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-autotools
autotools-no-asn1:
runs-on: ubuntu-latest
env:
BUILD_OPTS: --enable-doc --without-libtasn1 --without-trust-paths
container:
image: ghcr.io/p11-glue/p11-kit:master
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- run: dnf remove -y libtasn1-devel
- uses: ./.github/actions/basic-autotools
meson-no-asn1:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- run: dnf remove -y libtasn1-devel
- uses: ./.github/actions/basic-meson
address-sanitizer:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
MESON_BUILD_OPTS: -Db_sanitize=address
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-meson
undefined-sanitizer:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
MESON_BUILD_OPTS: -Db_sanitize=undefined
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-meson
scan-build:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
SCAN_BUILD: scan-build --status-bugs
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-meson
mingw:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
MESON_BUILD_OPTS: --cross-file build/cross_file_mingw64.txt
MESON_TEST_OPTS: --num-processes 1
WINEPATH: /usr/x86_64-w64-mingw32/sys-root/mingw/bin
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-meson
cppcheck:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
PROFILE: cppcheck
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- run: |
find common p11-kit trust -name '*.c' -print | cppcheck -f --platform=unix64 --relative-paths --language=c --quiet -I common -I p11-kit -I trust --file-list=- --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1
coverage:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
MESON_BUILD_OPTS: -Db_coverage=true
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-meson
- name: Genereate coverage
run: runuser -u user -- ninja coverage -C $GITHUB_WORKSPACE/$BUILDDIR
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
path-to-lcov: ./builddir/meson-logs/coverage.info
github-token: ${{ secrets.github_token }}
macos:
runs-on: macos-latest
env:
MESON_BUILD_OPTS: -Dclosures=0
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
brew upgrade -f
brew install --overwrite coreutils gettext libffi libtasn1 meson
- name: Update path
run: |
echo /usr/local/opt/gettext/bin >>${GITHUB_PATH}
- uses: ./.github/actions/basic-meson
libffi:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
env:
MESON_BUILD_OPTS: -Db_sanitize=address -Db_sanitize=undefined -Dclosures=0
steps:
# Checkout repo
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/basic-meson