1
0
Fork 0
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:
jugeeya 2021-08-13 22:53:57 -07:00 committed by GitHub
parent 4e57e811f4
commit 9e8a89547a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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