1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-23 14:56:11 +00:00
UltimateTrainingModpack/.github/workflows/rust.yml

88 lines
2.9 KiB
YAML
Raw Normal View History

name: Rust
on:
push:
branches: [ master ]
jobs:
2020-07-05 15:29:49 -07:00
overlay:
runs-on: ubuntu-latest
2020-07-05 15:29:49 -07:00
container: devkitpro/devkita64:latest
steps:
2020-07-05 15:37:08 -07:00
- uses: actions/checkout@v1
2020-07-05 15:32:42 -07:00
with:
submodules: recursive
2020-08-15 12:21:24 -07:00
- name: Build overlay
2020-07-05 15:29:49 -07:00
run: make
2020-07-05 15:39:11 -07:00
working-directory: TrainingModpackOverlay
- name: Upload overlay artifact
2020-08-15 13:16:03 -07:00
uses: actions/upload-artifact@v2
2020-07-05 15:29:49 -07:00
with:
name: overlay
path: TrainingModpackOverlay/ovlTrainingModpack.ovl
2020-08-15 12:21:24 -07:00
plugin:
2020-07-05 15:29:49 -07:00
runs-on: ubuntu-latest
2020-08-15 12:21:24 -07:00
container: jugeeya/cargo-skyline:latest
2020-08-15 12:35:47 -07:00
2020-07-05 15:29:49 -07:00
steps:
2020-09-20 13:29:32 -07:00
- uses: actions/checkout@v2
2020-09-20 17:48:56 -07:00
- name: Link rust-std-skyline src
2020-09-20 17:53:02 -07:00
run: mkdir ../rust-std-skyline-squashed && ln -s $XARGO_RUST_SRC ../rust-std-skyline-squashed/src
2020-08-15 12:21:24 -07:00
- name: Build release NRO
2020-08-15 13:16:03 -07:00
run: cargo skyline build --release
2020-08-15 12:21:24 -07:00
- name: Upload plugin artifact
2020-08-15 13:16:03 -07:00
uses: actions/upload-artifact@v2
2020-07-05 16:10:13 -07:00
with:
2020-08-15 12:21:24 -07:00
name: plugin
2020-09-20 17:48:56 -07:00
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
- name: Build outside_training_mode NRO
2021-04-14 09:50:52 -07:00
run: cargo skyline build --features outside_training_mode
- name: Upload plugin (outside training mode) artifact
uses: actions/upload-artifact@v2
with:
name: plugin_outside_training_mode
2021-01-23 17:20:40 -08:00
path: target/aarch64-skyline-switch/dev/libtraining_modpack.nro
2020-08-15 12:21:24 -07:00
upload:
runs-on: ubuntu-latest
needs:
- overlay
- plugin
steps:
- name: Download all artifacts
uses: actions/download-artifact@v2
2020-05-17 10:41:48 -07:00
- name: Prepare zip
2020-08-15 12:21:24 -07:00
env:
SMASH_PLUGIN_DIR: atmosphere/contents/01006A800016E000/romfs/skyline/plugins
TESLA_OVERLAY_DIR: switch/.overlays
run: |
wget https://github.com/jugeeya/UltimateTrainingModpack/releases/download/2.5/TrainingModpack.zip
unzip TrainingModpack.zip
2020-08-15 12:21:24 -07:00
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
2020-10-13 19:23:17 -07:00
wget https://github.com/ultimate-research/params-hook-plugin/releases/download/v0.1.1/libparam_hook.nro
2020-09-14 13:52:29 -07:00
cp libparam_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libparam_hook.nro
2020-08-15 12:21:24 -07:00
mkdir -p ${{env.TESLA_OVERLAY_DIR}}
cp overlay/ovlTrainingModpack.ovl ${{env.TESLA_OVERLAY_DIR}}/ovlTrainingModpack.ovl
zip -r training_modpack_beta.zip atmosphere config switch
2020-06-07 19:20:24 -07:00
- name: Update Release
uses: meeDamian/github-release@2.0
2020-05-17 11:13:52 -07:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
2020-06-07 19:20:24 -07:00
prerelease: true
allow_override: true
gzip: false
2020-08-19 17:59:40 -07:00
tag: beta
2020-05-17 11:13:52 -07:00
name: beta
2020-05-17 11:25:12 -07:00
body: >
2020-05-25 15:13:19 -07:00
Beta built off of the latest code in the repository.
Install the same way you would install a full release.
2020-06-07 19:20:24 -07:00
files: >
training_modpack_beta.zip
- name: Upload zip as artifact
uses: actions/upload-artifact@v1
with:
name: full_build
path: training_modpack_beta.zip