diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-01-21 16:01:10 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2022-01-27 15:59:50 +0100 |
commit | 962d6658c8012ea84b8b2ddeaa1e76c6a97b0438 (patch) | |
tree | 149f4f3a728d0313e4f58a075d64e5252ad66c6c /.gitlab-ci.yml | |
parent | d29ca4c40f24467e8347f072b102a351226afd37 (diff) |
ci: Cross-compile to arm and run via qemu.
The exact architecture is armv7-unknown-linux-gnueabihf.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e55b8209..33ab7ebc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -276,6 +276,26 @@ clippy: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo +rust-stable-armv7: + tags: + - linux + stage: build + image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-cross-arm-prebuild:latest + before_script: + - *before_script_start + - cat .ci/snippet_for_cross_compilation_config.toml >> .cargo/config.toml + - rm rust-toolchain + - *before_script_end + script: + - CARGO_PACKAGES="-p buffered-reader -p sequoia-openpgp" $MAKE_TOP test + variables: + CARGO_TARGET_DIR: /target + CARGO_HOME: /cargo + CARGO_PACKAGES: -p buffered-reader -p sequoia-openpgp + CARGO_FLAGS: --target=armv7-unknown-linux-gnueabihf + PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig + PKG_CONFIG_ALLOW_CROSS: 1 + rust-stable:arm64: tags: - docker-arm64 |