Skip to content

Commit 6ee1455

Browse files
Merge bitcoin-core/secp256k1#1406: ci, gha: Move more non-x86_64 tasks from Cirrus CI to GitHub Actions
fc3dea2 ci: Move "ppc64le: Linux..." from Cirrus to GitHub Actions (Hennadii Stepanov) 7782dc8 ci: Move "ARM64: Linux..." from Cirrus to GitHub Actions (Hennadii Stepanov) 0a16de6 ci: Move "ARM32: Linux..." from Cirrus to GitHub Actions (Hennadii Stepanov) ea33914 ci: Move "s390x (big-endian): Linux..." from Cirrus to GitHub Actions (Hennadii Stepanov) 880be8a ci: Move "i686: Linux (Debian stable)" from Cirrus to GiHub Actions (Hennadii Stepanov) Pull request description: Move more non-x86_64 tasks from Cirrus CI to GitHub Actions. Solves one item in bitcoin-core/secp256k1#1392 partially. ACKs for top commit: real-or-random: ACK fc3dea2 but still waiting for Cirrus Tree-SHA512: 9a910b3ee500aa34fc4db827f8b2a50bcfb637a9e59f4ad32545634772b397ce80b31a18723f4605dc42aa19a5632292943102099f7720f87de1da454da068b0
2 parents 2e6cf9b + fc3dea2 commit 6ee1455

File tree

2 files changed

+247
-89
lines changed

2 files changed

+247
-89
lines changed

.cirrus.yml

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -64,95 +64,6 @@ linux_container_snippet: &LINUX_CONTAINER
6464
# More than enough for our scripts.
6565
memory: 2G
6666

67-
task:
68-
name: "i686: Linux (Debian stable)"
69-
<< : *LINUX_CONTAINER
70-
env:
71-
HOST: i686-linux-gnu
72-
ECDH: yes
73-
RECOVERY: yes
74-
SCHNORRSIG: yes
75-
ELLSWIFT: yes
76-
matrix:
77-
- env:
78-
CC: i686-linux-gnu-gcc
79-
- env:
80-
CC: clang --target=i686-pc-linux-gnu -isystem /usr/i686-linux-gnu/include
81-
test_script:
82-
- ./ci/ci.sh
83-
<< : *CAT_LOGS
84-
85-
task:
86-
name: "s390x (big-endian): Linux (Debian stable, QEMU)"
87-
<< : *LINUX_CONTAINER
88-
env:
89-
WRAPPER_CMD: qemu-s390x
90-
SECP256K1_TEST_ITERS: 16
91-
HOST: s390x-linux-gnu
92-
WITH_VALGRIND: no
93-
ECDH: yes
94-
RECOVERY: yes
95-
SCHNORRSIG: yes
96-
ELLSWIFT: yes
97-
CTIMETESTS: no
98-
test_script:
99-
- ./ci/ci.sh
100-
<< : *CAT_LOGS
101-
102-
task:
103-
name: "ARM32: Linux (Debian stable, QEMU)"
104-
<< : *LINUX_CONTAINER
105-
env:
106-
WRAPPER_CMD: qemu-arm
107-
SECP256K1_TEST_ITERS: 16
108-
HOST: arm-linux-gnueabihf
109-
WITH_VALGRIND: no
110-
ECDH: yes
111-
RECOVERY: yes
112-
SCHNORRSIG: yes
113-
ELLSWIFT: yes
114-
CTIMETESTS: no
115-
matrix:
116-
- env: {}
117-
- env: {EXPERIMENTAL: yes, ASM: arm32}
118-
test_script:
119-
- ./ci/ci.sh
120-
<< : *CAT_LOGS
121-
122-
task:
123-
name: "ARM64: Linux (Debian stable, QEMU)"
124-
<< : *LINUX_CONTAINER
125-
env:
126-
WRAPPER_CMD: qemu-aarch64
127-
SECP256K1_TEST_ITERS: 16
128-
HOST: aarch64-linux-gnu
129-
WITH_VALGRIND: no
130-
ECDH: yes
131-
RECOVERY: yes
132-
SCHNORRSIG: yes
133-
ELLSWIFT: yes
134-
CTIMETESTS: no
135-
test_script:
136-
- ./ci/ci.sh
137-
<< : *CAT_LOGS
138-
139-
task:
140-
name: "ppc64le: Linux (Debian stable, QEMU)"
141-
<< : *LINUX_CONTAINER
142-
env:
143-
WRAPPER_CMD: qemu-ppc64le
144-
SECP256K1_TEST_ITERS: 16
145-
HOST: powerpc64le-linux-gnu
146-
WITH_VALGRIND: no
147-
ECDH: yes
148-
RECOVERY: yes
149-
SCHNORRSIG: yes
150-
ELLSWIFT: yes
151-
CTIMETESTS: no
152-
test_script:
153-
- ./ci/ci.sh
154-
<< : *CAT_LOGS
155-
15667
# Sanitizers
15768
task:
15869
<< : *LINUX_CONTAINER

.github/workflows/ci.yml

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,253 @@ jobs:
126126
run: env
127127
if: ${{ always() }}
128128

129+
i686_debian:
130+
name: "i686: Linux (Debian stable)"
131+
runs-on: ubuntu-latest
132+
needs: docker_cache
133+
134+
strategy:
135+
fail-fast: false
136+
matrix:
137+
cc:
138+
- 'i686-linux-gnu-gcc'
139+
- 'clang --target=i686-pc-linux-gnu -isystem /usr/i686-linux-gnu/include'
140+
141+
env:
142+
HOST: 'i686-linux-gnu'
143+
ECDH: 'yes'
144+
RECOVERY: 'yes'
145+
SCHNORRSIG: 'yes'
146+
ELLSWIFT: 'yes'
147+
CC: ${{ matrix.cc }}
148+
149+
steps:
150+
- name: Checkout
151+
uses: actions/checkout@v3
152+
153+
- name: CI script
154+
uses: ./.github/actions/run-in-docker-action
155+
with:
156+
dockerfile: ./ci/linux-debian.Dockerfile
157+
tag: linux-debian-image
158+
command: >
159+
git config --global --add safe.directory ${{ github.workspace }} &&
160+
./ci/ci.sh
161+
162+
- run: cat tests.log || true
163+
if: ${{ always() }}
164+
- run: cat noverify_tests.log || true
165+
if: ${{ always() }}
166+
- run: cat exhaustive_tests.log || true
167+
if: ${{ always() }}
168+
- run: cat ctime_tests.log || true
169+
if: ${{ always() }}
170+
- run: cat bench.log || true
171+
if: ${{ always() }}
172+
- run: cat config.log || true
173+
if: ${{ always() }}
174+
- run: cat test_env.log || true
175+
if: ${{ always() }}
176+
- name: CI env
177+
run: env
178+
if: ${{ always() }}
179+
180+
s390x_debian:
181+
name: "s390x (big-endian): Linux (Debian stable, QEMU)"
182+
runs-on: ubuntu-latest
183+
needs: docker_cache
184+
185+
env:
186+
WRAPPER_CMD: 'qemu-s390x'
187+
SECP256K1_TEST_ITERS: 16
188+
HOST: 's390x-linux-gnu'
189+
WITH_VALGRIND: 'no'
190+
ECDH: 'yes'
191+
RECOVERY: 'yes'
192+
SCHNORRSIG: 'yes'
193+
ELLSWIFT: 'yes'
194+
CTIMETESTS: 'no'
195+
196+
steps:
197+
- name: Checkout
198+
uses: actions/checkout@v3
199+
200+
- name: CI script
201+
uses: ./.github/actions/run-in-docker-action
202+
with:
203+
dockerfile: ./ci/linux-debian.Dockerfile
204+
tag: linux-debian-image
205+
command: >
206+
git config --global --add safe.directory ${{ github.workspace }} &&
207+
./ci/ci.sh
208+
209+
- run: cat tests.log || true
210+
if: ${{ always() }}
211+
- run: cat noverify_tests.log || true
212+
if: ${{ always() }}
213+
- run: cat exhaustive_tests.log || true
214+
if: ${{ always() }}
215+
- run: cat ctime_tests.log || true
216+
if: ${{ always() }}
217+
- run: cat bench.log || true
218+
if: ${{ always() }}
219+
- run: cat config.log || true
220+
if: ${{ always() }}
221+
- run: cat test_env.log || true
222+
if: ${{ always() }}
223+
- name: CI env
224+
run: env
225+
if: ${{ always() }}
226+
227+
arm32_debian:
228+
name: "ARM32: Linux (Debian stable, QEMU)"
229+
runs-on: ubuntu-latest
230+
needs: docker_cache
231+
232+
strategy:
233+
fail-fast: false
234+
matrix:
235+
configuration:
236+
- env_vars: {}
237+
- env_vars: { EXPERIMENTAL: 'yes', ASM: 'arm32' }
238+
239+
env:
240+
WRAPPER_CMD: 'qemu-arm'
241+
SECP256K1_TEST_ITERS: 16
242+
HOST: 'arm-linux-gnueabihf'
243+
WITH_VALGRIND: 'no'
244+
ECDH: 'yes'
245+
RECOVERY: 'yes'
246+
SCHNORRSIG: 'yes'
247+
ELLSWIFT: 'yes'
248+
CTIMETESTS: 'no'
249+
250+
steps:
251+
- name: Checkout
252+
uses: actions/checkout@v3
253+
254+
- name: CI script
255+
env: ${{ matrix.configuration.env_vars }}
256+
uses: ./.github/actions/run-in-docker-action
257+
with:
258+
dockerfile: ./ci/linux-debian.Dockerfile
259+
tag: linux-debian-image
260+
command: >
261+
git config --global --add safe.directory ${{ github.workspace }} &&
262+
./ci/ci.sh
263+
264+
- run: cat tests.log || true
265+
if: ${{ always() }}
266+
- run: cat noverify_tests.log || true
267+
if: ${{ always() }}
268+
- run: cat exhaustive_tests.log || true
269+
if: ${{ always() }}
270+
- run: cat ctime_tests.log || true
271+
if: ${{ always() }}
272+
- run: cat bench.log || true
273+
if: ${{ always() }}
274+
- run: cat config.log || true
275+
if: ${{ always() }}
276+
- run: cat test_env.log || true
277+
if: ${{ always() }}
278+
- name: CI env
279+
run: env
280+
if: ${{ always() }}
281+
282+
arm64_debian:
283+
name: "ARM64: Linux (Debian stable, QEMU)"
284+
runs-on: ubuntu-latest
285+
needs: docker_cache
286+
287+
env:
288+
WRAPPER_CMD: 'qemu-aarch64'
289+
SECP256K1_TEST_ITERS: 16
290+
HOST: 'aarch64-linux-gnu'
291+
WITH_VALGRIND: 'no'
292+
ECDH: 'yes'
293+
RECOVERY: 'yes'
294+
SCHNORRSIG: 'yes'
295+
ELLSWIFT: 'yes'
296+
CTIMETESTS: 'no'
297+
298+
steps:
299+
- name: Checkout
300+
uses: actions/checkout@v3
301+
302+
- name: CI script
303+
uses: ./.github/actions/run-in-docker-action
304+
with:
305+
dockerfile: ./ci/linux-debian.Dockerfile
306+
tag: linux-debian-image
307+
command: >
308+
git config --global --add safe.directory ${{ github.workspace }} &&
309+
./ci/ci.sh
310+
311+
- run: cat tests.log || true
312+
if: ${{ always() }}
313+
- run: cat noverify_tests.log || true
314+
if: ${{ always() }}
315+
- run: cat exhaustive_tests.log || true
316+
if: ${{ always() }}
317+
- run: cat ctime_tests.log || true
318+
if: ${{ always() }}
319+
- run: cat bench.log || true
320+
if: ${{ always() }}
321+
- run: cat config.log || true
322+
if: ${{ always() }}
323+
- run: cat test_env.log || true
324+
if: ${{ always() }}
325+
- name: CI env
326+
run: env
327+
if: ${{ always() }}
328+
329+
ppc64le_debian:
330+
name: "ppc64le: Linux (Debian stable, QEMU)"
331+
runs-on: ubuntu-latest
332+
needs: docker_cache
333+
334+
env:
335+
WRAPPER_CMD: 'qemu-ppc64le'
336+
SECP256K1_TEST_ITERS: 16
337+
HOST: 'powerpc64le-linux-gnu'
338+
WITH_VALGRIND: 'no'
339+
ECDH: 'yes'
340+
RECOVERY: 'yes'
341+
SCHNORRSIG: 'yes'
342+
ELLSWIFT: 'yes'
343+
CTIMETESTS: 'no'
344+
345+
steps:
346+
- name: Checkout
347+
uses: actions/checkout@v3
348+
349+
- name: CI script
350+
uses: ./.github/actions/run-in-docker-action
351+
with:
352+
dockerfile: ./ci/linux-debian.Dockerfile
353+
tag: linux-debian-image
354+
command: >
355+
git config --global --add safe.directory ${{ github.workspace }} &&
356+
./ci/ci.sh
357+
358+
- run: cat tests.log || true
359+
if: ${{ always() }}
360+
- run: cat noverify_tests.log || true
361+
if: ${{ always() }}
362+
- run: cat exhaustive_tests.log || true
363+
if: ${{ always() }}
364+
- run: cat ctime_tests.log || true
365+
if: ${{ always() }}
366+
- run: cat bench.log || true
367+
if: ${{ always() }}
368+
- run: cat config.log || true
369+
if: ${{ always() }}
370+
- run: cat test_env.log || true
371+
if: ${{ always() }}
372+
- name: CI env
373+
run: env
374+
if: ${{ always() }}
375+
129376
mingw_debian:
130377
name: ${{ matrix.configuration.job_name }}
131378
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)