mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Use cargo-skyline image to speed up builds
This commit is contained in:
parent
4e57e811f4
commit
9e8a89547a
1 changed files with 10 additions and 13 deletions
23
.github/workflows/rust.yml
vendored
23
.github/workflows/rust.yml
vendored
|
@ -9,22 +9,15 @@ on:
|
|||
jobs:
|
||||
plugin:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: jugeeya/cargo-skyline:2.1.0
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install minimal stable rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: Install cargo-skyline
|
||||
run: |
|
||||
cargo install cargo-skyline
|
||||
- name: Update skyline-rs toolchain
|
||||
run: |
|
||||
cargo skyline update-std
|
||||
- name: Build release NRO
|
||||
run: |
|
||||
cargo skyline build --release
|
||||
PATH=$PATH:/root/.cargo/bin /root/.cargo/bin/cargo-skyline skyline build --release
|
||||
env:
|
||||
HOME: /root
|
||||
- name: Upload plugin artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
@ -36,8 +29,12 @@ jobs:
|
|||
name: svg
|
||||
path: src/templates/check.svg
|
||||
- name: Build outside_training_mode NRO
|
||||
run: cargo skyline build --features outside_training_mode
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: PATH=$PATH:/root/.cargo/bin /root/.cargo/bin/cargo-skyline skyline build --features outside_training_mode
|
||||
env:
|
||||
HOME: /root
|
||||
- name: Upload plugin (outside training mode) artifact
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: plugin_outside_training_mode
|
||||
|
|
Loading…
Reference in a new issue