2022-02-21 03:14:22 +00:00
name : Rust
on :
push :
2022-11-06 21:38:02 +00:00
branches : [ main ]
2022-02-21 03:14:22 +00:00
pull_request :
2022-11-06 21:38:02 +00:00
branches : [ main ]
2022-02-21 03:14:22 +00:00
workflow_dispatch :
jobs :
2023-01-31 23:17:00 +00:00
checker :
2023-02-02 23:01:11 +00:00
name : Check, Clippy, Tests
2022-02-21 03:14:22 +00:00
runs-on : ubuntu-latest
steps :
- uses : actions/checkout@v2
- name : Install minimal nightly rust
uses : actions-rs/toolchain@v1
with :
profile : minimal
2022-10-03 15:54:08 +00:00
toolchain : nightly
2022-02-21 03:14:22 +00:00
components : rustfmt, clippy
default : true
target : x86_64-unknown-linux-gnu
2023-02-01 00:30:46 +00:00
- uses : Swatinem/rust-cache@v2
name : Rust Cache
with :
2023-02-17 00:12:39 +00:00
prefix-key : "checker"
2023-01-31 23:17:00 +00:00
- name : Clippy
2023-02-17 00:12:39 +00:00
uses : actions-rs/cargo@v1
continue-on-error : false
with :
command : clippy
args : --all-targets --all-features --target=x86_64-unknown-linux-gnu -- -D warnings
2023-02-02 23:01:11 +00:00
- name : TUI Test
2023-02-17 00:12:39 +00:00
uses : actions-rs/cargo@v1
continue-on-error : false
with :
working-directory : training_mod_tui
2022-02-21 03:14:22 +00:00
plugin :
2023-01-31 23:17:00 +00:00
name : Plugin NRO
2022-02-21 03:14:22 +00:00
runs-on : ubuntu-latest
container :
2023-01-31 23:17:00 +00:00
image : jugeeya/cargo-skyline:3.2.0-no-dkp
2022-02-21 03:14:22 +00:00
steps :
- uses : actions/checkout@v2
2023-02-01 00:30:46 +00:00
- uses : Swatinem/rust-cache@v2
name : Rust Cache
with :
prefix-key : "plugin"
2022-02-21 03:14:22 +00:00
- name : Build release NRO
2022-11-11 18:17:14 +00:00
id : build_release
2023-01-31 23:17:00 +00:00
run : cargo-skyline skyline build --release
2022-02-21 03:14:22 +00:00
env :
HOME : /root
- name : Upload plugin artifact
uses : actions/upload-artifact@v2
with :
name : plugin
path : target/aarch64-skyline-switch/release/libtraining_modpack.nro
plugin_outside_training_mode :
2023-01-31 23:17:00 +00:00
name : Plugin NRO (Outside Training Mode)
2022-11-06 21:38:02 +00:00
if : github.ref == 'refs/heads/main'
2022-02-21 03:14:22 +00:00
runs-on : ubuntu-latest
container :
2023-01-31 23:17:00 +00:00
image : jugeeya/cargo-skyline:3.2.0-no-dkp
2022-02-21 03:14:22 +00:00
steps :
- uses : actions/checkout@v2
2023-02-01 00:30:46 +00:00
- uses : Swatinem/rust-cache@v2
name : Rust Cache
with :
prefix-key : "plugin"
2022-02-21 03:14:22 +00:00
- name : Build outside_training_mode NRO
run : |
2023-01-31 23:17:00 +00:00
cargo-skyline skyline build --release --features outside_training_mode
2022-02-21 03:14:22 +00:00
env :
HOME : /root
- name : Upload plugin (outside training mode) artifact
uses : actions/upload-artifact@v2
with :
name : plugin_outside_training_mode
path : target/aarch64-skyline-switch/release/libtraining_modpack.nro
upload :
2023-01-31 23:17:00 +00:00
name : Upload Beta Release
2022-02-21 03:14:22 +00:00
runs-on : ubuntu-latest
2022-11-06 21:38:02 +00:00
if : github.ref == 'refs/heads/main'
2022-02-21 03:14:22 +00:00
needs :
- plugin
steps :
- name : Download all artifacts
uses : actions/download-artifact@v2
- name : Prepare zip
2022-11-11 17:56:00 +00:00
id : prepare_zip
2022-02-21 03:14:22 +00:00
env :
SMASH_PLUGIN_DIR : atmosphere/contents/01006A800016E000/romfs/skyline/plugins
run : |
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
2022-06-22 15:48:56 +00:00
wget https://github.com/ultimate-research/params-hook-plugin/releases/download/v13.0.1/libparam_hook.nro
2022-12-15 18:01:45 +00:00
wget https://github.com/ultimate-research/nro-hook-plugin/releases/download/v0.4.0/libnro_hook.nro
2022-02-21 03:14:22 +00:00
wget https://github.com/jugeeya/nn-hid-hook/releases/download/beta/libnn_hid_hook.nro
cp libparam_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libparam_hook.nro
cp libnro_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libnro_hook.nro
cp libnn_hid_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libnn_hid_hook.nro
2022-03-25 00:11:50 +00:00
zip -r training_modpack_beta.zip atmosphere
2023-01-04 01:34:26 +00:00
- name : Delete Release
uses : dev-drprasad/delete-tag-and-release@v0.2.0
with :
tag_name : beta
delete_release : true
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2022-02-21 03:14:22 +00:00
- name : Update Release
uses : meeDamian/github-release@2.0
with :
token : ${{ secrets.GITHUB_TOKEN }}
prerelease : true
allow_override : true
gzip : false
tag : beta
2022-11-07 16:59:37 +00:00
commitish : main
2022-02-21 03:14:22 +00:00
name : beta
body : >
Beta built off of the latest code in the repository.
2023-02-02 21:24:57 +00:00
# Changelog
You can find the changelog here : https://github.com/jugeeya/UltimateTrainingModpack#beta-changelog
2022-05-04 15:58:10 +00:00
2022-11-11 17:56:00 +00:00
## Installation
2022-03-24 20:15:07 +00:00
2023-02-17 00:12:39 +00:00
*For fuller instructions, please join the [Discord](https://discord.gg/xUZWJ5BWe7) and visit the #setup-and-download channel.*
- (*Console only*) Install Atmosphere to your hacked Switch. One great guide can be found at https://switch.homebrew.guide/
2022-03-24 20:15:07 +00:00
2023-02-17 00:12:39 +00:00
- Place the **contents** of the `training_modpack_beta.zip` on the root of your SD card. This means that you first unzip the file, then place its folder on the SD card root. The `atmosphere` folder should be **merged** onto the root of your SD card.
2022-03-24 20:15:07 +00:00
2023-02-17 00:12:39 +00:00
- *For Ryujinx* : Paste the `contents` folder inside `atmosphere` into `%AppData%/Ryujinx/mods/`
2022-03-24 20:15:07 +00:00
2023-02-17 00:12:39 +00:00
- Download Skyline : https://github.com/skyline-dev/skyline/releases. Place the `exefs` folder from the zip into `atmosphere/contents/01006A800016E000` on your SD card.
2022-03-24 20:15:07 +00:00
2023-02-17 00:12:39 +00:00
- *For Ryujinx* : Paste these files in `%AppData%/Ryujinx/mods/contents/01006a800016e000`
2022-02-21 03:14:22 +00:00
files : >
training_modpack_beta.zip
- name : Upload zip as artifact
uses : actions/upload-artifact@v1
with :
name : full_build
2022-11-07 05:57:33 +00:00
path : training_modpack_beta.zip