ci: add basic Cirrus CI testing for FreeBSD + M1 (#826)

This commit is contained in:
Clement Tsang 2022-10-12 17:45:45 -04:00 committed by GitHub
parent 2a740f48f7
commit 577165292c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 6 deletions

31
.cirrus.yml Normal file
View File

@ -0,0 +1,31 @@
task:
name: FreeBSD 13 Test
freebsd_instance:
image_family: freebsd-13-1
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh --default-toolchain stable -y
- . $HOME/.cargo/env
test_script:
- . $HOME/.cargo/env
- cargo fmt --all -- --check
- cargo test --no-run --locked
- cargo test --no-fail-fast -- --nocapture --quiet
- cargo clippy --all-targets --workspace -- -D warnings
task:
name: macOS M1 Test
freebsd_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh --default-toolchain stable -y
- . $HOME/.cargo/env
test_script:
- . $HOME/.cargo/env
- cargo fmt --all -- --check
- cargo test --no-run --locked
- cargo test --no-fail-fast -- --nocapture --quiet
- cargo clippy --all-targets --workspace -- -D warnings

View File

@ -48,12 +48,7 @@ jobs:
target: "x86_64-pc-windows-msvc",
cross: false,
}
features: [
"--all-features",
# "--features battery",
# "--features gpu",
"--no-default-features",
]
features: ["--all-features", "--no-default-features"]
steps:
- name: Check if this action should be skipped
id: skip_check