mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
web menu gh workflow
This commit is contained in:
parent
1a273f7cbf
commit
4a5df01637
1 changed files with 19 additions and 22 deletions
41
.github/workflows/rust.yml
vendored
41
.github/workflows/rust.yml
vendored
|
@ -5,21 +5,6 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
overlay:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: devkitpro/devkita64:latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- name: Build overlay
|
|
||||||
run: make
|
|
||||||
working-directory: TrainingModpackOverlay
|
|
||||||
- name: Upload overlay artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: overlay
|
|
||||||
path: TrainingModpackOverlay/ovlTrainingModpack.ovl
|
|
||||||
plugin:
|
plugin:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jugeeya/cargo-skyline:latest
|
container: jugeeya/cargo-skyline:latest
|
||||||
|
@ -35,6 +20,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: plugin
|
name: plugin
|
||||||
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
|
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
|
||||||
|
- name: Upload check SVG
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: svg
|
||||||
|
path: src/templates/check.svg
|
||||||
- name: Build outside_training_mode NRO
|
- name: Build outside_training_mode NRO
|
||||||
run: cargo skyline build --features outside_training_mode
|
run: cargo skyline build --features outside_training_mode
|
||||||
- name: Upload plugin (outside training mode) artifact
|
- name: Upload plugin (outside training mode) artifact
|
||||||
|
@ -45,26 +35,33 @@ jobs:
|
||||||
upload:
|
upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- overlay
|
|
||||||
- plugin
|
- plugin
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
- name: Prepare zip
|
- name: Prepare zip
|
||||||
env:
|
env:
|
||||||
|
SKYLINE_DIR: atmosphere/contents/01006A800016E000/exefs
|
||||||
SMASH_PLUGIN_DIR: atmosphere/contents/01006A800016E000/romfs/skyline/plugins
|
SMASH_PLUGIN_DIR: atmosphere/contents/01006A800016E000/romfs/skyline/plugins
|
||||||
TESLA_OVERLAY_DIR: switch/.overlays
|
SMASH_WEB_DIR: atmosphere/contents/01006A800016E000/manual_html/contents.htdocs
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/jugeeya/UltimateTrainingModpack/releases/download/2.5/TrainingModpack.zip
|
wget https://github.com/skyline-dev/skyline/releases/download/beta/skyline.zip
|
||||||
unzip TrainingModpack.zip
|
unzip skyline.zip
|
||||||
|
|
||||||
|
mv exefs ${{env.SKYLINE_DIR}}
|
||||||
|
|
||||||
|
mkdir -p ${{env.SKYLINE_DIR}}
|
||||||
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
|
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
|
||||||
|
mkdir -p ${{env.SMASH_WEB_DIR}}
|
||||||
|
|
||||||
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
|
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
|
||||||
wget https://github.com/ultimate-research/params-hook-plugin/releases/download/v0.1.1/libparam_hook.nro
|
wget https://github.com/ultimate-research/params-hook-plugin/releases/download/v0.1.1/libparam_hook.nro
|
||||||
|
wget https://github.com/ultimate-research/nro-hook-plugin/releases/download/v0.1.1/libnro_hook.nro
|
||||||
cp libparam_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libparam_hook.nro
|
cp libparam_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libparam_hook.nro
|
||||||
mkdir -p ${{env.TESLA_OVERLAY_DIR}}
|
cp libnro_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libnro_hook.nro
|
||||||
cp overlay/ovlTrainingModpack.ovl ${{env.TESLA_OVERLAY_DIR}}/ovlTrainingModpack.ovl
|
|
||||||
zip -r training_modpack_beta.zip atmosphere config switch
|
cp svg/check.svg ${{env.SMASH_WEB_DIR}}/check.svg
|
||||||
|
zip -r training_modpack_beta.zip atmosphere
|
||||||
- name: Update Release
|
- name: Update Release
|
||||||
uses: meeDamian/github-release@2.0
|
uses: meeDamian/github-release@2.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue