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:
parent
46484bafff
commit
e2bed25be3
1 changed files with 10 additions and 4 deletions
14
.github/workflows/rust.yml
vendored
14
.github/workflows/rust.yml
vendored
|
@ -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:
|
||||||
|
@ -97,4 +103,4 @@ jobs:
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: full_build
|
name: full_build
|
||||||
path: training_modpack_beta.zip
|
path: training_modpack_beta.zip
|
||||||
|
|
Loading…
Reference in a new issue