From 577165292c7f58d8ca10c56f787180f690136fd0 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Wed, 12 Oct 2022 17:45:45 -0400 Subject: [PATCH] ci: add basic Cirrus CI testing for FreeBSD + M1 (#826) --- .cirrus.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 7 +------ 2 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..02f24957 --- /dev/null +++ b/.cirrus.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44cc2824..eb24e061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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