mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-09 13:40:28 +08:00
Install zstd in ci pipeline
- Add install_zstd step before the build - Fix test_archive_tar_zst panicking on CI
This commit is contained in:
@@ -24,6 +24,10 @@ __defs:
|
||||
fi
|
||||
rustc --version
|
||||
|
||||
# The tar.zst archive test needs the zstd binary, which git shells out to.
|
||||
install_zstd: &install_zstd |
|
||||
command -v zstd >/dev/null 2>&1 || sudo apt-get install -y -qq zstd
|
||||
|
||||
# Only the parts of ~/.cargo that are expensive to fetch again. registry/src
|
||||
# and git/checkouts are left out on purpose: cargo re-creates both from the
|
||||
# cache and the git db, so caching them would double the size of the volume
|
||||
@@ -50,6 +54,7 @@ steps:
|
||||
paths: *cargo_cache
|
||||
commands:
|
||||
- *install_rust
|
||||
- *install_zstd
|
||||
- RUSTFLAGS="-D warnings" cargo build --workspace --all-features
|
||||
- cargo test --workspace --all-features
|
||||
- cargo test -p radicle-httpd
|
||||
|
||||
Reference in New Issue
Block a user