From bc466b7a5e0c3a65da11b49d17792891893142df Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Thu, 26 Oct 2023 11:19:49 +0200 Subject: [PATCH] WIP ci/cirrus: Add ARM32 valgrind tasks [skip actions] --- .cirrus.yml | 75 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 21 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 04aa8f2409..aecc56ec0f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -58,28 +58,58 @@ linux_arm64_container_snippet: &LINUX_ARM64_CONTAINER test_script: - docker run --rm --mount "type=bind,src=./,dst=/ci_secp256k1" --env-file /tmp/env --replace --name "ci_secp256k1_arm" "ci_secp256k1_arm" bash -c "cd /ci_secp256k1/ && ./ci/ci.sh" -task: - name: "ARM64: Linux (Debian stable)" - persistent_worker: - labels: - type: arm64 - env: - ECDH: yes - RECOVERY: yes - SCHNORRSIG: yes - ELLSWIFT: yes - matrix: - # Currently only gcc-snapshot, the other compilers are tested on GHA with QEMU - - env: { CC: 'gcc-snapshot' } - << : *LINUX_ARM64_CONTAINER - << : *CAT_LOGS +linux_armhf_container_snippet: &LINUX_ARMHF_CONTAINER + env_script: + - env | tee /tmp/env + build_script: + - DOCKER_BUILDKIT=1 docker build --file "ci/linux-debian.Dockerfile" --tag="ci_secp256k1_arm" + - docker image prune --force # Cleanup stale layers + test_script: + - docker run --rm --mount "type=bind,src=./,dst=/ci_secp256k1" --env-file /tmp/env --replace --name "ci_secp256k1_arm" "ci_secp256k1_arm" bash -c "apt-get update && apt-get install --no-install-recommends -y valgrind:armhf && cd /ci_secp256k1/ && ./ci/ci.sh" + +# task: +# name: "ARM64: Linux (Debian stable)" +# persistent_worker: +# labels: +# type: arm64 +# env: +# ECDH: yes +# RECOVERY: yes +# SCHNORRSIG: yes +# ELLSWIFT: yes +# matrix: +# # Currently only gcc-snapshot, the other compilers are tested on GHA with QEMU +# - env: { CC: 'gcc-snapshot' } +# << : *LINUX_ARM64_CONTAINER +# << : *CAT_LOGS + +# task: +# name: "ARM64: Linux (Debian stable), Valgrind" +# persistent_worker: +# labels: +# type: arm64 +# env: +# ECDH: yes +# RECOVERY: yes +# SCHNORRSIG: yes +# ELLSWIFT: yes +# WRAPPER_CMD: 'valgrind --error-exitcode=42' +# SECP256K1_TEST_ITERS: 2 +# matrix: +# - env: { CC: 'gcc' } +# - env: { CC: 'clang' } +# - env: { CC: 'gcc-snapshot' } +# - env: { CC: 'clang-snapshot' } +# << : *LINUX_ARM64_CONTAINER +# << : *CAT_LOGS task: - name: "ARM64: Linux (Debian stable), Valgrind" + name: "ARM32: Linux (Debian stable), Valgrind" persistent_worker: labels: type: arm64 env: + HOST: 'arm-linux-gnueabihf' ECDH: yes RECOVERY: yes SCHNORRSIG: yes @@ -87,9 +117,12 @@ task: WRAPPER_CMD: 'valgrind --error-exitcode=42' SECP256K1_TEST_ITERS: 2 matrix: - - env: { CC: 'gcc' } - - env: { CC: 'clang' } - - env: { CC: 'gcc-snapshot' } - - env: { CC: 'clang-snapshot' } - << : *LINUX_ARM64_CONTAINER + - env: { } + - env: { EXPERIMENTAL: 'yes', ASM: 'arm32' } + matrix: + - env: { } # gcc + - env: { CC: 'clang --target=arm-linux-gnueabihf', CCASFLAGS: "-Wa,-mthumb" } + # - env: { CC: 'gcc-snapshot' } # FIXME multilib gcc? + - env: { CC: 'clang-snapshot --target=arm-linux-gnueabihf', CCASFLAGS: "-Wa,-mthumb" } + << : *LINUX_ARMHF_CONTAINER << : *CAT_LOGS