Commit 85f7fbff authored by Ben Boeckel's avatar Ben Boeckel

gitlab-ci: vendor used dependencies

This reduces the size of the artifacts between stages.
parent 19a81f8e
...@@ -13,6 +13,8 @@ before_script: ...@@ -13,6 +13,8 @@ before_script:
.cargo_update: &cargo_update .cargo_update: &cargo_update
- cargo generate-lockfile $GENERATE_LOCKFILE_ARGS - cargo generate-lockfile $GENERATE_LOCKFILE_ARGS
- cargo fetch --locked - cargo fetch --locked
- mkdir .cargo
- cargo vendor > .cargo/config
.cargo_clippy: &cargo_clippy .cargo_clippy: &cargo_clippy
# Only use it if it's available; no need to fail the build due to something # Only use it if it's available; no need to fail the build due to something
...@@ -66,7 +68,8 @@ before_script: ...@@ -66,7 +68,8 @@ before_script:
artifacts: artifacts:
expire_in: 60m expire_in: 60m
paths: paths:
- .cargo-cache - vendor
- .cargo
- Cargo.lock - Cargo.lock
cache: cache:
key: cargo-cache-$CARGO_UPDATE_POLICY key: cargo-cache-$CARGO_UPDATE_POLICY
...@@ -87,7 +90,8 @@ before_script: ...@@ -87,7 +90,8 @@ before_script:
artifacts: artifacts:
expire_in: 60m expire_in: 60m
paths: paths:
- .cargo-cache - vendor
- .cargo
- Cargo.lock - Cargo.lock
- target - target
interruptible: true interruptible: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment