1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-30 22:00:16 +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:
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: