forked from wez/wezterm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
37 lines (35 loc) · 1.03 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
compute_engine_instance:
image_project: freebsd-org-cloud-dev
image: family/freebsd-13-2
platform: freebsd
cpu: 4
memory: 8G
disk: 100 # Gb
env:
CIRRUS_CLONE_SUBMODULES: true
CIRRUS_CLONE_DEPTH: 1
task:
name: freebsd-13
stateful: false
only_if: "changesInclude('**.toml', '**.rs', '.gitmodules', '.cirrus.yml', 'get-deps', 'Cargo.lock')"
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:
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
build_script:
- env PATH=$HOME/.cargo/bin:$PATH cargo build --all --release
test_script:
- env PATH=$HOME/.cargo/bin:$PATH cargo test --all --release