2020-04-13 03:36:16 +00:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2020-07-05 22:29:49 +00:00
|
|
|
overlay:
|
2020-04-13 03:36:16 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-07-05 22:29:49 +00:00
|
|
|
container: devkitpro/devkita64:latest
|
2020-04-13 03:36:16 +00:00
|
|
|
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-07-05 22:29:49 +00:00
|
|
|
- name: make
|
|
|
|
run: make
|
2020-07-05 22:39:11 +00:00
|
|
|
working-directory: TrainingModpackOverlay
|
2020-07-05 22:29:49 +00:00
|
|
|
- name: Upload build artifact
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: overlay
|
|
|
|
path: TrainingModpackOverlay/ovlTrainingModpack.ovl
|
|
|
|
upload:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: overlay
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-17 17:41:48 +00:00
|
|
|
- name: Install cargo-skyline
|
|
|
|
run: cargo install --git https://github.com/jam1garner/cargo-skyline
|
|
|
|
- name: Install rust-std-skyline-squashed
|
|
|
|
run: cd .. && git clone https://github.com/jam1garner/rust-std-skyline-squashed && cd -
|
2020-06-10 19:49:01 +00:00
|
|
|
- name: Install xargo
|
|
|
|
run: cargo install xargo
|
2020-05-17 17:41:48 +00:00
|
|
|
- name: Attempt to build
|
2020-06-10 19:49:01 +00:00
|
|
|
run: XARGO_RUST_SRC=$(realpath ../rust-std-skyline-squashed/src) PATH=$PATH:/usr/share/rust/.rustup/toolchains/nightly-2020-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin cargo skyline build --release
|
2020-07-05 23:10:13 +00:00
|
|
|
- uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: overlay
|
2020-05-17 17:41:48 +00:00
|
|
|
- name: Prepare zip
|
|
|
|
run: |
|
|
|
|
mkdir -p atmosphere/contents/01006A800016E000/romfs/skyline/plugins/
|
|
|
|
cp ./target/aarch64-skyline-switch/release/libtraining_modpack.nro atmosphere/contents/01006A800016E000/romfs/skyline/plugins/libtraining_modpack.nro
|
|
|
|
mkdir -p switch/.overlays/
|
2020-07-05 22:51:22 +00:00
|
|
|
cp overlay/ovlTrainingModpack.ovl switch/.overlays/ovlTrainingModpack.ovl
|
2020-05-17 17:41:48 +00:00
|
|
|
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
|
|
|
|
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
|