2023-04-21 17:52:55 +03:00
|
|
|
compute_engine_instance:
|
|
|
|
image_project: freebsd-org-cloud-dev
|
|
|
|
image: family/freebsd-13-2
|
|
|
|
platform: freebsd
|
2020-09-09 19:14:21 +03:00
|
|
|
cpu: 4
|
|
|
|
memory: 8G
|
2023-04-21 17:52:55 +03:00
|
|
|
disk: 100 # Gb
|
2020-09-09 07:48:00 +03:00
|
|
|
|
2023-04-18 06:32:34 +03:00
|
|
|
env:
|
|
|
|
CIRRUS_CLONE_SUBMODULES: true
|
|
|
|
CIRRUS_CLONE_DEPTH: 1
|
|
|
|
|
2020-09-09 07:48:00 +03:00
|
|
|
task:
|
2023-02-01 18:05:08 +03:00
|
|
|
name: freebsd-13
|
2020-09-09 07:48:00 +03:00
|
|
|
stateful: false
|
2021-02-07 20:51:55 +03:00
|
|
|
only_if: "changesInclude('**.toml', '**.rs', '.gitmodules', '.cirrus.yml', 'get-deps', 'Cargo.lock')"
|
2023-04-18 06:40:41 +03:00
|
|
|
install_rust_script:
|
2023-04-18 06:35:05 +03:00
|
|
|
- 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
|
2023-04-18 06:40:41 +03:00
|
|
|
getdeps_script:
|
2023-04-18 06:35:05 +03:00
|
|
|
- env PATH=$HOME/.cargo/bin:$PATH bash get-deps
|
|
|
|
- mkdir -p /run/sshd
|
2023-04-18 06:32:34 +03:00
|
|
|
registry_cache:
|
|
|
|
folder: $CARGO_HOME/registry
|
|
|
|
fingerprint_script: cat Cargo.lock
|
|
|
|
target_cache:
|
|
|
|
folder: target
|
|
|
|
fingerprint_script:
|
|
|
|
- rustc --version
|
|
|
|
- cat Cargo.lock
|
|
|
|
before_cache_script: rm -rf $CARGO_HOME/registry/index
|
2023-04-18 06:40:41 +03:00
|
|
|
build_script:
|
2020-10-06 19:53:45 +03:00
|
|
|
- env PATH=$HOME/.cargo/bin:$PATH cargo build --all --release
|
2023-04-18 06:40:41 +03:00
|
|
|
test_script:
|
2020-10-06 19:53:45 +03:00
|
|
|
- env PATH=$HOME/.cargo/bin:$PATH cargo test --all --release
|