From 2aa77386b8f7c0e602a537561a898591f47b2f81 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Mon, 16 Dec 2024 22:34:51 +1300 Subject: [PATCH] CI: build and test separately Signed-off-by: Nico Burns --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 406d30e8..4fa149bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,16 @@ jobs: - run: sudo apt update; sudo apt install libgtk-3-dev libxdo-dev - run: cargo build --workspace + build-features-default: + name: "Build [default features]" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml + - run: sudo apt update; sudo apt install libgtk-3-dev libxdo-dev + - run: cargo build --workspace + test-features-default: name: "Test [default features]" runs-on: ubuntu-latest @@ -42,7 +52,6 @@ jobs: - uses: dtolnay/rust-toolchain@stable - run: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml - run: sudo apt update; sudo apt install libgtk-3-dev libxdo-dev - - run: cargo build --workspace - run: cargo test --workspace fmt: