1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-10-03 01:34:27 +00:00
UltimateTrainingModpack/.github/workflows/rust.yml

82 lines
2.6 KiB
YAML
Raw Normal View History

name: Rust
on:
push:
branches: [ master ]
jobs:
2020-07-05 22:29:49 +00:00
overlay:
runs-on: ubuntu-latest
2020-07-05 22:29:49 +00:00
container: devkitpro/devkita64:latest
steps:
2020-07-05 22:37:08 +00:00
- uses: actions/checkout@v1
2020-07-05 22:32:42 +00:00
with:
submodules: recursive
2020-08-15 19:21:24 +00:00
- name: Build overlay
2020-07-05 22:29:49 +00:00
run: make
2020-07-05 22:39:11 +00:00
working-directory: TrainingModpackOverlay
- name: Upload overlay artifact
2020-08-15 20:16:03 +00:00
uses: actions/upload-artifact@v2
2020-07-05 22:29:49 +00:00
with:
name: overlay
path: TrainingModpackOverlay/ovlTrainingModpack.ovl
2020-08-15 19:21:24 +00:00
plugin:
2020-07-05 22:29:49 +00:00
runs-on: ubuntu-latest
2020-08-15 19:21:24 +00:00
container: jugeeya/cargo-skyline:latest
2020-08-15 19:35:47 +00:00
2020-07-05 22:29:49 +00:00
steps:
2020-09-20 20:29:32 +00:00
- uses: actions/checkout@v2
2020-09-21 00:48:56 +00:00
- name: Link rust-std-skyline src
2020-09-21 00:53:02 +00:00
run: mkdir ../rust-std-skyline-squashed && ln -s $XARGO_RUST_SRC ../rust-std-skyline-squashed/src
2020-08-15 19:21:24 +00:00
- name: Build release NRO
2020-08-15 20:16:03 +00:00
run: cargo skyline build --release
2020-08-15 19:21:24 +00:00
- name: Upload plugin artifact
2020-08-15 20:16:03 +00:00
uses: actions/upload-artifact@v2
2020-07-05 23:10:13 +00:00
with:
2020-08-15 19:21:24 +00:00
name: plugin
2020-09-21 00:48:56 +00:00
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
2020-08-15 19:21:24 +00:00
upload:
runs-on: ubuntu-latest
needs:
- overlay
- plugin
steps:
- name: Download all artifacts
uses: actions/download-artifact@v2
2020-05-17 17:41:48 +00:00
- name: Prepare zip
2020-08-15 19:21:24 +00:00
env:
SMASH_PLUGIN_DIR: atmosphere/contents/01006A800016E000/romfs/skyline/plugins
TESLA_OVERLAY_DIR: switch/.overlays
2020-05-17 17:41:48 +00:00
run: |
2020-08-15 19:21:24 +00:00
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
2020-09-14 20:52:29 +00:00
wget https://github.com/ultimate-research/params-hook-plugin/releases/download/v0.1/libparam_hook.nro
cp libparam_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libparam_hook.nro
2020-08-15 19:21:24 +00:00
mkdir -p ${{env.TESLA_OVERLAY_DIR}}
cp overlay/ovlTrainingModpack.ovl ${{env.TESLA_OVERLAY_DIR}}/ovlTrainingModpack.ovl
zip -r training_modpack_beta.zip atmosphere switch
2020-06-08 02:20:24 +00:00
- name: Update Release
uses: meeDamian/github-release@2.0
2020-05-17 18:13:52 +00:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
2020-06-08 02:20:24 +00:00
prerelease: true
allow_override: true
gzip: false
2020-08-20 00:59:40 +00:00
tag: beta
2020-05-17 18:13:52 +00:00
name: beta
2020-05-17 18:25:12 +00:00
body: >
2020-05-25 22:13:19 +00:00
Beta built off of the latest code in the repository.
Use the files on the ZIP to replace your existing files from a full Release zip.
- `atmosphere/contents/01006A800016E000/romfs/skyline/plugins/libtraining_modpack.nro` is the mod for the game itself
2020-06-03 18:36:21 +00:00
2020-05-25 22:13:19 +00:00
- `switch/.overlays/ovlTrainingModpack.ovl` is the Tesla submenu
2020-06-08 02:20:24 +00: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