1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-28 04:44:06 +00:00

Run clippy check in parallel with build (#224)

* Update rust.yml

* Update rust.yml

* Don't do clippy twice

* Update rust.yml
This commit is contained in:
jugeeya 2021-08-14 19:25:46 -07:00 committed by GitHub
parent 46484bafff
commit e2bed25be3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,15 +2,14 @@ name: Rust
on: on:
push: push:
branches: [ master ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
plugin: clippy_pr:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: jugeeya/cargo-skyline:2.1.0
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install minimal nightly rust - name: Install minimal nightly rust
@ -26,6 +25,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
toolchain: nightly-2021-06-01 toolchain: nightly-2021-06-01
args: --all-features --target=x86_64-unknown-linux-gnu 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 - name: Build release NRO
run: | run: |
PATH=$PATH:/root/.cargo/bin /root/.cargo/bin/cargo-skyline skyline build --release 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 path: target/aarch64-skyline-switch/dev/libtraining_modpack.nro
upload: upload:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: needs:
- plugin - plugin
steps: steps: