ci: better segment cirrus build steps

This commit is contained in:
Wez Furlong 2023-04-17 20:40:41 -07:00
parent c3e759b6f6
commit 51c8a20465
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -11,11 +11,12 @@ task:
name: freebsd-13
stateful: false
only_if: "changesInclude('**.toml', '**.rs', '.gitmodules', '.cirrus.yml', 'get-deps', 'Cargo.lock')"
setup_script:
install_rust_script:
- pkg install -y bash
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- chmod +x /tmp/rustup.sh
- RUSTUP_IO_THREADS=1 /tmp/rustup.sh -y -q
getdeps_script:
- env PATH=$HOME/.cargo/bin:$PATH bash get-deps
- mkdir -p /run/sshd
registry_cache:
@ -27,6 +28,7 @@ task:
- rustc --version
- cat Cargo.lock
before_cache_script: rm -rf $CARGO_HOME/registry/index
test_script:
build_script:
- env PATH=$HOME/.cargo/bin:$PATH cargo build --all --release
test_script:
- env PATH=$HOME/.cargo/bin:$PATH cargo test --all --release