-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
27 lines (26 loc) · 873 Bytes
/
.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
task:
name: Build (Alpine Linux)
container:
image: alpine:3.17
cpu: 8
matrix:
- environment:
RUST_VERSION: "1.68.0"
- environment:
RUST_VERSION: "stable"
environment:
PATH: "$HOME/.cargo/bin:$PATH"
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.toml
install_script:
- apk --update add curl git gcc musl-dev
- curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION}
- rustup target add wasm32-unknown-unknown
- rustup target add riscv32imac-unknown-none-elf
test_script:
- cargo test
- cargo build --lib --target wasm32-unknown-unknown
- cargo build --lib --target riscv32imac-unknown-none-elf --features no_std
before_cache_script: rm -rf $HOME/.cargo/registry/index