summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Carpenter <dvn@pep-project.org>2021-03-16 16:27:31 +0000
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-06 15:57:01 +0200
commitaab7bc0142be0cbe68a87552a022df6c234f0982 (patch)
treec00f5664165df8408b93b1f49860f133aba626e5
parentc9ae3dcda4cc0e8ef89ef949ae88ee2c9123a615 (diff)
CI: add arm64 linux jobs
Duplicate the linux jobs in the CI manifest, but make them pull the arm64 docker images, and use the arm64 runner.
-rw-r--r--.gitlab-ci.yml74
1 files changed, 74 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 36364dfb..b76a075b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,6 +34,25 @@ build-bullseye:
RUSTFLAGS: -D warnings -A unused-parens
after_script: []
+build-bullseye:arm64:
+ tags:
+ - linux
+ stage: build
+ image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild-arm64:latest
+ dependencies:
+ - codespell
+ script:
+ - make
+ - if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed. Please add the change to the corresponding commit." ; false ; fi
+ - if ! git diff --quiet sq ; then echo "Please commit the changes to sq/src/sq-usage.rs." ; false ; fi
+ - if ! git diff --quiet sqv ; then echo "Please commit the changes to sqv/src/sqv-usage.rs." ; false ; fi
+ - if ! git diff --quiet ; then echo "The build changed the source. Please investigate." ; git diff ; fi
+ variables:
+ CARGO_TARGET_DIR: /target
+ CARGO_HOME: /cargo
+ RUSTFLAGS: -D warnings -A unused-parens
+ after_script: []
+
bullseye:
tags:
- linux
@@ -49,6 +68,21 @@ bullseye:
RUSTFLAGS: -D warnings -A unused-parens
after_script: []
+bullseye:arm64:
+ tags:
+ - docker-arm64
+ stage: build
+ image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild-arm64:latest
+ dependencies:
+ - codespell
+ script:
+ - SEQUOIA_CTEST_VALGRIND=/usr/bin/valgrind make test
+ variables:
+ CARGO_TARGET_DIR: /target
+ CARGO_HOME: /cargo
+ RUSTFLAGS: -D warnings -A unused-parens
+ after_script: []
+
all_commits:
# Test each commit up to main, to facilitate bisecting.
stage: test
@@ -65,6 +99,22 @@ all_commits:
RUSTFLAGS: -D warnings -A unused-parens
GIT_STRATEGY: clone
+all_commits:arm64:
+ # Test each commit up to main, to facilitate bisecting.
+ stage: test
+ image: registry.gitlab.com/sequoia-pgp/build-docker-image/rust-stable-prebuild-arm64:latest
+ needs: ["rust-stable"]
+ except:
+ # Do not run for pushes to the pep-engine branch.
+ - /^pep-engine$/
+ script:
+ - .ci/all_commits.sh
+ variables:
+ CARGO_TARGET_DIR: /target
+ CARGO_HOME: /cargo
+ RUSTFLAGS: -D warnings -A unused-parens
+ GIT_STRATEGY: clone
+
codespell:
tags:
- linux
@@ -77,6 +127,18 @@ codespell:
- make codespell CODESPELL_FLAGS=--summary
after_script: []
+codespell:arm64:
+ tags:
+ - linux
+ stage: pre-check
+ image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-arm64:latest
+
+ before_script:
+ - codespell --version
+ script:
+ - make codespell CODESPELL_FLAGS=--summary
+ after_script: []
+
rust-stable:
tags:
- linux
@@ -89,6 +151,18 @@ rust-stable:
CARGO_HOME: /cargo
RUSTFLAGS: -D warnings -A unused-parens
+rust-stable:arm64:
+ tags:
+ - linux
+ stage: build
+ image: registry.gitlab.com/sequoia-pgp/build-docker-image/rust-stable-prebuild-arm64:latest
+ script:
+ - CARGO_PACKAGES="-p buffered-reader -p sequoia-openpgp -p sequoia-sqv" make test
+ variables:
+ CARGO_TARGET_DIR: /target
+ CARGO_HOME: /cargo
+ RUSTFLAGS: -D warnings -A unused-parens
+
windows-gnu:
tags:
- win