From 3366f93e2b27d70e469692259f11e191a24f56b8 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 10 Mar 2022 14:14:03 -0600 Subject: [PATCH] Fix release workflow to not build default features. --- .github/workflows/release.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06b847b..89e04ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,14 +27,32 @@ jobs: with: command: check args: --all-features --examples + if: ${{ runner.os != 'Linux' }} + - uses: actions-rs/cargo@v1 + with: + command: check + args: --no-default-features --examples + if: ${{ runner.os == 'Linux' }} - uses: actions-rs/cargo@v1 with: command: fmt - args: --all -- --check + args: --all --check + if: ${{ runner.os == 'Linux' }} + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all --no-default-features --check + if: ${{ runner.os == 'Linux' }} - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features + if: ${{ runner.os != 'Linux' }} + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --no-default-features + if: ${{ runner.os == 'Linux' }} check_web: name: Check Web @@ -88,4 +106,4 @@ jobs: sudo apt-get update sudo apt-get install -y libspeechd-dev cargo login $CARGO_TOKEN - cargo publish + cargo publish --no-default-features