mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-25 14:44:39 +02:00
ci: add basic Cirrus CI testing for FreeBSD + M1 (#826)
This commit is contained in:
parent
2a740f48f7
commit
577165292c
31
.cirrus.yml
Normal file
31
.cirrus.yml
Normal 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
|
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -48,12 +48,7 @@ jobs:
|
|||||||
target: "x86_64-pc-windows-msvc",
|
target: "x86_64-pc-windows-msvc",
|
||||||
cross: false,
|
cross: false,
|
||||||
}
|
}
|
||||||
features: [
|
features: ["--all-features", "--no-default-features"]
|
||||||
"--all-features",
|
|
||||||
# "--features battery",
|
|
||||||
# "--features gpu",
|
|
||||||
"--no-default-features",
|
|
||||||
]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check if this action should be skipped
|
- name: Check if this action should be skipped
|
||||||
id: skip_check
|
id: skip_check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user