From 6f93205f7a97a20893fece3ef02b5dc021a4403b Mon Sep 17 00:00:00 2001 From: toasterparty Date: Thu, 16 May 2024 16:14:58 -0700 Subject: [PATCH] fix redundant action run --- .github/workflows/rust.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 09ffb455..95f188d8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,6 +2,8 @@ name: Rust on: push: + branches: + - main pull_request: jobs: @@ -35,23 +37,12 @@ jobs: toolchain: stable target: powerpc-unknown-linux-gnu override: true - - - name: Install cargo fmt and cargo clippy - run: rustup component add rustfmt clippy - - - name: Check format - run: cargo fmt -- --check - - - name: Run clippy - run: cargo clippy -- -D warnings - - - name: Build - uses: actions-rs/cargo@v1 + + - uses: actions-rs/cargo@v1 with: command: build args: --release --all-features --verbose - - name: Test - uses: actions-rs/cargo@v1 + - uses: actions-rs/cargo@v1 with: command: test