From 8102820f864c361026bdaaef2e0db280ec0e4b64 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 22 Nov 2022 14:13:46 -0600 Subject: [PATCH] These checks should be run before the tag is pushed, so remove them from the release workflow. --- .github/workflows/release.yml | 70 +---------------------------------- 1 file changed, 2 insertions(+), 68 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a28727d..6579d70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,82 +6,16 @@ on: - "v*" jobs: - check: - name: Check - strategy: - matrix: - os: [windows-latest, ubuntu-22.04, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - run: rustup toolchain install stable - - uses: Swatinem/rust-cache@v2 - - run: sudo apt-get update; sudo apt-get install -y libspeechd-dev - if: ${{ runner.os == 'Linux' }} - - uses: actions-rs/cargo@v1 - 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 - - 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 - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - - run: rustup toolchain install stable - - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features --examples --target wasm32-unknown-unknown - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --target wasm32-unknown-unknown - - uses: actions-rs/install@v0.1 - with: - crate: cargo-make - - uses: actions-rs/cargo@v1 - with: - command: make - args: build-web-example - publish: name: Publish runs-on: ubuntu-22.04 - needs: [check, check_web] env: CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }} steps: - uses: actions/checkout@v3 - - run: rustup toolchain install stable - - uses: Swatinem/rust-cache@v2 - run: | sudo apt-get update sudo apt-get install -y libspeechd-dev cargo login $CARGO_TOKEN - cargo publish --no-default-features + rustup toolchain install stable + cargo publish