From e2bed25be387cc83c9fc16300479418a771b1e86 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Sat, 14 Aug 2021 19:25:46 -0700 Subject: [PATCH] Run clippy check in parallel with build (#224) * Update rust.yml * Update rust.yml * Don't do clippy twice * Update rust.yml --- .github/workflows/rust.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6ea46d5..f7d21ac 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,15 +2,14 @@ name: Rust on: push: + branches: [ master ] pull_request: branches: [ master ] workflow_dispatch: jobs: - plugin: + clippy_pr: runs-on: ubuntu-latest - container: - image: jugeeya/cargo-skyline:2.1.0 steps: - uses: actions/checkout@v2 - name: Install minimal nightly rust @@ -26,6 +25,12 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} toolchain: nightly-2021-06-01 args: --all-features --target=x86_64-unknown-linux-gnu + plugin: + runs-on: ubuntu-latest + container: + image: jugeeya/cargo-skyline:2.1.0 + steps: + - uses: actions/checkout@v2 - name: Build release NRO run: | PATH=$PATH:/root/.cargo/bin /root/.cargo/bin/cargo-skyline skyline build --release @@ -54,6 +59,7 @@ jobs: path: target/aarch64-skyline-switch/dev/libtraining_modpack.nro upload: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' needs: - plugin steps: @@ -97,4 +103,4 @@ jobs: uses: actions/upload-artifact@v1 with: name: full_build - path: training_modpack_beta.zip \ No newline at end of file + path: training_modpack_beta.zip