Skip to content

Commit f1542db

Browse files
committed
Try to fix arm64 libc sigsegv issue by reinstalling qemu
1 parent 259903f commit f1542db

File tree

1 file changed

+161
-134
lines changed

1 file changed

+161
-134
lines changed

.github/workflows/ci.yml

Lines changed: 161 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -2,155 +2,182 @@
22
name: CI
33
on: [ workflow_dispatch, push, pull_request ]
44
jobs:
5-
omnilint:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/[email protected]
9-
- uses: docker://lpenz/omnilint:0.5.2
10-
pytest:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/[email protected]
14-
- uses: actions/[email protected]
15-
- name: Install pytest
16-
run: python -m pip install pytest
17-
- run: pytest
18-
test:
19-
strategy:
20-
matrix:
21-
preset:
22-
- cppcheck
23-
- install
24-
- clang-tidy
25-
- clang-sanitize-address
26-
- clang-sanitize-memory
27-
- clang-sanitize-undefined
28-
- clang-sanitize-dataflow
29-
- clang-sanitize-safe-stack
30-
- gcc-sanitize-address
31-
- valgrind
32-
- cpack
33-
- coverage
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/[email protected]
37-
with:
38-
path: ghaction-cmake
39-
- uses: actions/[email protected]
40-
with:
41-
repository: lpenz/execpermfix
42-
path: execpermfix
43-
fetch-depth: 0
44-
- uses: ./ghaction-cmake
45-
with:
46-
preset: ${{ matrix.preset }}
47-
working-directory: execpermfix
5+
# omnilint:
6+
# runs-on: ubuntu-latest
7+
# steps:
8+
# - uses: actions/[email protected]
9+
# - uses: docker://lpenz/omnilint:0.5.2
10+
# pytest:
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# - uses: actions/[email protected]
14+
# - uses: actions/[email protected]
15+
# - name: Install pytest
16+
# run: python -m pip install pytest
17+
# - run: pytest
18+
# test:
19+
# strategy:
20+
# matrix:
21+
# preset:
22+
# - cppcheck
23+
# - install
24+
# - clang-tidy
25+
# - clang-sanitize-address
26+
# - clang-sanitize-memory
27+
# - clang-sanitize-undefined
28+
# - clang-sanitize-dataflow
29+
# - clang-sanitize-safe-stack
30+
# - gcc-sanitize-address
31+
# - valgrind
32+
# - cpack
33+
# - coverage
34+
# runs-on: ubuntu-latest
35+
# steps:
36+
# - uses: actions/[email protected]
37+
# with:
38+
# path: ghaction-cmake
39+
# - uses: actions/[email protected]
40+
# with:
41+
# repository: lpenz/execpermfix
42+
# path: execpermfix
43+
# fetch-depth: 0
44+
# - uses: ./ghaction-cmake
45+
# with:
46+
# preset: ${{ matrix.preset }}
47+
# working-directory: execpermfix
4848
publish-dockerhub:
49-
needs: [ omnilint, test ]
49+
# needs: [ omnilint, test ]
5050
runs-on: ubuntu-latest
5151
strategy:
5252
fail-fast: false
5353
matrix:
5454
variant:
55-
# Global default: Debian Bullseye
56-
- base: debian:bullseye
57-
platform: 'linux/386,linux/amd64,linux/arm/v7,linux/arm64'
58-
label: ''
59-
# Global default platforms: Debian Bullseye
60-
- base: debian:bullseye
61-
platform: linux/386
62-
label: -386
63-
- base: debian:bullseye
64-
platform: linux/amd64
65-
label: -amd64
66-
- base: debian:bullseye
67-
platform: linux/arm/v7
68-
label: -armv7
55+
# # Global default: Debian Bullseye
56+
# - base: debian:bullseye
57+
# platform: 'linux/386,linux/amd64,linux/arm/v7,linux/arm64'
58+
# label: ''
59+
# # Global default platforms: Debian Bullseye
60+
# - base: debian:bullseye
61+
# platform: linux/386
62+
# label: -386
63+
# - base: debian:bullseye
64+
# platform: linux/amd64
65+
# label: -amd64
66+
# - base: debian:bullseye
67+
# platform: linux/arm/v7
68+
# label: -armv7
6969
- base: debian:bullseye
7070
platform: linux/arm64
7171
label: -arm64
72-
# Debian Bullseye platforms:
73-
- base: debian:bullseye
74-
platform: linux/386
75-
label: -debian-bullseye-386
76-
- base: debian:bullseye
77-
platform: linux/amd64
78-
label: -debian-bullseye-amd64
79-
- base: debian:bullseye
80-
platform: linux/arm/v7
81-
label: -debian-bullseye-armv7
82-
- base: debian:bullseye
83-
platform: linux/arm64
84-
label: -debian-bullseye-arm64
85-
# Debian Bookworm platforms:
86-
- base: debian:bookworm
87-
platform: linux/386
88-
label: -debian-bookworm-386
89-
- base: debian:bookworm
90-
platform: linux/amd64
91-
label: -debian-bookworm-amd64
92-
- base: debian:bookworm
93-
platform: linux/arm/v6
94-
label: -debian-bookworm-armv6
95-
- base: debian:bookworm
96-
platform: linux/arm/v7
97-
label: -debian-bookworm-armv7
98-
- base: debian:bookworm
99-
platform: linux/arm64
100-
label: -debian-bookworm-arm64
101-
# Debian Trixie platforms:
102-
- base: debian:trixie
103-
platform: linux/386
104-
label: -debian-trixie-386
105-
- base: debian:trixie
106-
platform: linux/amd64
107-
label: -debian-trixie-amd64
108-
- base: debian:trixie
109-
platform: linux/arm/v6
110-
label: -debian-trixie-armv6
111-
- base: debian:trixie
112-
platform: linux/arm/v7
113-
label: -debian-trixie-armv7
114-
- base: debian:trixie
115-
platform: linux/arm64
116-
label: -debian-trixie-arm64
117-
# Ubuntu Jammy platforms:
118-
- base: ubuntu:jammy
119-
platform: linux/amd64
120-
label: -ubuntu-jammy-amd64
121-
- base: ubuntu:jammy
122-
platform: linux/arm/v7
123-
label: -ubuntu-jammy-armv7
124-
- base: ubuntu:jammy
125-
platform: linux/arm64/v8
126-
label: -ubuntu-jammy-arm64
127-
# Ubuntu Noble platforms:
128-
- base: ubuntu:noble
129-
platform: linux/amd64
130-
label: -ubuntu-noble-amd64
131-
- base: ubuntu:noble
132-
platform: linux/arm/v7
133-
label: -ubuntu-noble-armv7
134-
- base: ubuntu:noble
135-
platform: linux/arm64/v8
136-
label: -ubuntu-noble-arm64
137-
# Raspbian Bullseye:
138-
- base: lpenz/raspbian-bullseye-armhf
139-
platform: linux/armhf
140-
label: -raspbian-bullseye-armhf
141-
# Raspberry Pi OS Bullseye:
142-
- base: lpenz/rpios-bullseye-armhf
143-
platform: linux/armhf
144-
label: -rpios-bullseye-armhf
145-
- base: lpenz/rpios-bullseye-arm64
146-
platform: linux/arm64
147-
label: -rpios-bullseye-arm64
72+
# # Debian Bullseye platforms:
73+
# - base: debian:bullseye
74+
# platform: linux/386
75+
# label: -debian-bullseye-386
76+
# - base: debian:bullseye
77+
# platform: linux/amd64
78+
# label: -debian-bullseye-amd64
79+
# - base: debian:bullseye
80+
# platform: linux/arm/v7
81+
# label: -debian-bullseye-armv7
82+
# - base: debian:bullseye
83+
# platform: linux/arm64
84+
# label: -debian-bullseye-arm64
85+
# # Debian Bookworm platforms:
86+
# - base: debian:bookworm
87+
# platform: linux/386
88+
# label: -debian-bookworm-386
89+
# - base: debian:bookworm
90+
# platform: linux/amd64
91+
# label: -debian-bookworm-amd64
92+
# - base: debian:bookworm
93+
# platform: linux/arm/v6
94+
# label: -debian-bookworm-armv6
95+
# - base: debian:bookworm
96+
# platform: linux/arm/v7
97+
# label: -debian-bookworm-armv7
98+
# - base: debian:bookworm
99+
# platform: linux/arm64
100+
# label: -debian-bookworm-arm64
101+
# # Debian Trixie platforms:
102+
# - base: debian:trixie
103+
# platform: linux/386
104+
# label: -debian-trixie-386
105+
# - base: debian:trixie
106+
# platform: linux/amd64
107+
# label: -debian-trixie-amd64
108+
# - base: debian:trixie
109+
# platform: linux/arm/v6
110+
# label: -debian-trixie-armv6
111+
# - base: debian:trixie
112+
# platform: linux/arm/v7
113+
# label: -debian-trixie-armv7
114+
# - base: debian:trixie
115+
# platform: linux/arm64
116+
# label: -debian-trixie-arm64
117+
# # Ubuntu Jammy platforms:
118+
# - base: ubuntu:jammy
119+
# platform: linux/amd64
120+
# label: -ubuntu-jammy-amd64
121+
# - base: ubuntu:jammy
122+
# platform: linux/arm/v7
123+
# label: -ubuntu-jammy-armv7
124+
# - base: ubuntu:jammy
125+
# platform: linux/arm64/v8
126+
# label: -ubuntu-jammy-arm64
127+
# # Ubuntu Noble platforms:
128+
# - base: ubuntu:noble
129+
# platform: linux/amd64
130+
# label: -ubuntu-noble-amd64
131+
# - base: ubuntu:noble
132+
# platform: linux/arm/v7
133+
# label: -ubuntu-noble-armv7
134+
# - base: ubuntu:noble
135+
# platform: linux/arm64/v8
136+
# label: -ubuntu-noble-arm64
137+
# # Raspbian Bullseye:
138+
# - base: lpenz/raspbian-bullseye-armhf
139+
# platform: linux/armhf
140+
# label: -raspbian-bullseye-armhf
141+
# # Raspberry Pi OS Bullseye:
142+
# - base: lpenz/rpios-bullseye-armhf
143+
# platform: linux/armhf
144+
# label: -rpios-bullseye-armhf
145+
# - base: lpenz/rpios-bullseye-arm64
146+
# platform: linux/arm64
147+
# label: -rpios-bullseye-arm64
148148
steps:
149149
- uses: actions/[email protected]
150150
- id: version
151151
uses: docker://lpenz/ghaction-version-gen:0.14.1
152152
- uses: docker/[email protected]
153+
# - name: qemu fix from https://github.com/docker/buildx/issues/314
154+
# run: |
155+
# set -e -x;
156+
# sudo apt-get update;
157+
# sudo apt-get upgrade -y;
158+
# sudo apt-get install -y qemu-system qemu-user
159+
# - name: qemu fix from https://github.com/docker/buildx/issues/314
160+
# run: |
161+
# set -e -x;
162+
# sudo apt update;
163+
# sudo apt upgrade -y;
164+
# sudo apt-get install -y libpixman-1-dev make ninja-build libglib2.0-dev;
165+
# wget https://download.qemu.org/qemu-7.0.0.tar.xz;
166+
# tar xvJf qemu-7.0.0.tar.xz;
167+
# cd qemu-7.0.0;
168+
# ./configure;
169+
# make;
170+
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes;
171+
- run: |
172+
set -e -x;
173+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -c yes;
174+
docker pull tonistiigi/binfmt:qemu-v7.0.0-28;
175+
: docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-*;
176+
: docker run --privileged --rm tonistiigi/binfmt --install all
153177
- uses: docker/[email protected]
178+
# - run: |
179+
# set -e -x;
180+
# qemu-system-aarch64 --version
154181
- uses: docker/[email protected]
155182
with:
156183
username: ${{ secrets.DOCKERHUB_USERNAME }}

0 commit comments

Comments
 (0)