-
Notifications
You must be signed in to change notification settings - Fork 13
182 lines (182 loc) · 6.06 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
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: docker://lpenz/omnilint:0.5.1
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: Install pytest
run: python -m pip install pytest
- run: pytest
test:
strategy:
matrix:
preset:
- cppcheck
- install
- clang-tidy
- clang-sanitize-address
- clang-sanitize-memory
- clang-sanitize-undefined
- clang-sanitize-dataflow
- clang-sanitize-safe-stack
- gcc-sanitize-address
- valgrind
- cpack
- coverage
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
path: ghaction-cmake
- uses: actions/[email protected]
with:
repository: lpenz/execpermfix
path: execpermfix
fetch-depth: 0
- uses: ./ghaction-cmake
with:
preset: ${{ matrix.preset }}
working-directory: execpermfix
publish-dockerhub:
needs: [ omnilint, test ]
runs-on: ubuntu-latest
strategy:
matrix:
variant:
# Global default: Debian Bullseye
- base: debian:bullseye
platform: 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64'
label: ''
# Global default platforms: Debian Bullseye
- base: debian:bullseye
platform: linux/386
label: -386
- base: debian:bullseye
platform: linux/amd64
label: -amd64
- base: debian:bullseye
platform: linux/arm/v6
label: -armv6
- base: debian:bullseye
platform: linux/arm/v7
label: -armv7
- base: debian:bullseye
platform: linux/arm64
label: -arm64
# Debian Bullseye platforms:
- base: debian:bullseye
platform: linux/386
label: -debian-bullseye-386
- base: debian:bullseye
platform: linux/amd64
label: -debian-bullseye-amd64
- base: debian:bullseye
platform: linux/arm/v6
label: -debian-bullseye-armv6
- base: debian:bullseye
platform: linux/arm/v7
label: -debian-bullseye-armv7
- base: debian:bullseye
platform: linux/arm64
label: -debian-bullseye-arm64
# Debian Bookworm platforms:
- base: debian:bookworm
platform: linux/386
label: -debian-bookworm-386
- base: debian:bookworm
platform: linux/amd64
label: -debian-bookworm-amd64
- base: debian:bookworm
platform: linux/arm/v6
label: -debian-bookworm-armv6
- base: debian:bookworm
platform: linux/arm/v7
label: -debian-bookworm-armv7
- base: debian:bookworm
platform: linux/arm64
label: -debian-bookworm-arm64
# Debian Trixie platforms:
- base: debian:trixie
platform: linux/386
label: -debian-trixie-386
- base: debian:trixie
platform: linux/amd64
label: -debian-trixie-amd64
- base: debian:trixie
platform: linux/arm/v6
label: -debian-trixie-armv6
- base: debian:trixie
platform: linux/arm/v7
label: -debian-trixie-armv7
- base: debian:trixie
platform: linux/arm64
label: -debian-trixie-arm64
# Ubuntu Jammy platforms:
- base: ubuntu:jammy
platform: linux/amd64
label: -ubuntu-jammy-amd64
- base: ubuntu:jammy
platform: linux/arm/v7
label: -ubuntu-jammy-armv7
- base: ubuntu:jammy
platform: linux/arm64/v8
label: -ubuntu-jammy-arm64
# Ubuntu Kinetic platforms:
- base: ubuntu:kinetic
platform: linux/amd64
label: -ubuntu-kinetic-amd64
- base: ubuntu:kinetic
platform: linux/arm/v7
label: -ubuntu-kinetic-armv7
- base: ubuntu:kinetic
platform: linux/arm64/v8
label: -ubuntu-kinetic-arm64
# Raspbian Bullseye:
- base: lpenz/raspbian-bullseye-armhf
platform: linux/armhf
label: -raspbian-bullseye-armhf
# Raspberry Pi OS Bullseye:
- base: lpenz/rpios-bullseye-armhf
platform: linux/armhf
label: -rpios-bullseye-armhf
- base: lpenz/rpios-bullseye-arm64
platform: linux/arm64
label: -rpios-bullseye-arm64
steps:
- uses: actions/[email protected]
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.2
- uses: docker/[email protected]
- uses: docker/[email protected]
- uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ steps.version.outputs.version_docker_ci != 'null' }}
- uses: docker/[email protected]
with:
build-args: BASE=${{ matrix.variant.base }}
push: ${{ steps.version.outputs.version_docker_ci != 'null' }}
platforms: ${{ matrix.variant.platform }}
tags: ${{ github.repository }}:${{ steps.version.outputs.version_docker_ci }}${{ matrix.variant.label }}
publish-github-release:
needs: [ publish-dockerhub ]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.2
- name: publish github release
uses: "marvinpinto/[email protected]"
if: steps.version.outputs.version_tagged != ''
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false