diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2023-01-19 11:44:45 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2023-01-26 10:06:38 +0100 |
commit | 93426d2bcae3d7d9cf83370bcb83ae126267743c (patch) | |
tree | 1132d8b2de328f8405174c08d2fba91a57b4557e /.gitlab-ci.yml | |
parent | f35bde57ae4093665a1e54a8db80ac810ac061d8 (diff) |
CI: Make side-effect-free jobs interruptible.
- Mark all jobs that are without side effects as interruptible.
- It should make updating commits build faster.
- One notable exception is `docker-build-push` job that is left
untouched.
- See: https://docs.gitlab.com/ee/ci/yaml/#interruptible
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3840afd..cab3312d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,6 +50,7 @@ bookworm: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bookworm-prebuild:latest script: - cargo run --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-nettle,compression --example supported-algorithms @@ -65,6 +66,7 @@ sq-features: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bookworm-prebuild:latest only: refs: @@ -91,6 +93,7 @@ bookworm-crypto-rust: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bookworm-prebuild:latest dependencies: - codespell @@ -105,6 +108,7 @@ bookworm-crypto-openssl: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bookworm-prebuild:latest dependencies: - codespell @@ -117,6 +121,7 @@ bookworm-crypto-openssl: benchmarks: stage: test + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bookworm:latest needs: ["rust-stable"] only: @@ -147,6 +152,7 @@ benchmarks: all_commits: # Test each commit up to main, to facilitate bisecting. stage: test + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest needs: ["rust-stable"] except: @@ -163,6 +169,7 @@ codespell: tags: - linux stage: pre-check + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bookworm:latest before_script: @@ -176,6 +183,7 @@ doc: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest before_script: - *before_script_start @@ -191,6 +199,7 @@ rust-stable: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest before_script: - *before_script_start @@ -206,6 +215,7 @@ clippy: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest before_script: - *before_script_start @@ -224,6 +234,7 @@ rust-stable-armv7: tags: - linux stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/bullseye-cross-arm-prebuild:latest before_script: - *before_script_start @@ -244,6 +255,7 @@ windows-gnu-nettle: - win - win2019 stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/windows-gnu only: variables: @@ -269,6 +281,7 @@ windows-gnu-cng: - win - win2019 stage: build + interruptible: true # Depend on the main configuration. As the jobs have common error # conditions, if one fails it is often not worth trying the other. # Therefore, we can short-circuit here. Also, this pipelines @@ -300,6 +313,7 @@ windows-msvc-cng: - win - win2019 stage: build + interruptible: true image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/windows-msvc only: variables: @@ -325,6 +339,7 @@ windows-msvc32-cng: - win - win2019 stage: build + interruptible: true # Depend on the main configuration. As the jobs have common error # conditions, if one fails it is often not worth trying the other. # Therefore, we can short-circuit here. Also, this pipelines |