1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-05 06:12:19 +00:00
UltimateTrainingModpack/.github/workflows/rust.yml

58 lines
2.3 KiB
YAML
Raw Normal View History

name: Rust
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-05-17 10:41:48 -07:00
- name: Sync submodules
run: git submodule sync --recursive && git submodule update --init --recursive
- name: Download DEVKITPRO
run: wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
- name: Install DEVKITPRO
run: sudo dpkg -i devkitpro-pacman.deb
- name: Install dkp-pacman
run: printf "\nY" | sudo dkp-pacman -S switch-dev
- name: Make Tesla overlay
working-directory: TrainingModpackOverlay
2020-05-17 11:03:17 -07:00
run: DEVKITPRO=/opt/devkitpro make
2020-05-17 10:41:48 -07: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 12:49:01 -07:00
- name: Install xargo
run: cargo install xargo
2020-05-17 10:41:48 -07:00
- name: Attempt to build
2020-06-10 12:49:01 -07: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-05-17 10:41:48 -07: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/
cp TrainingModpackOverlay/ovlTrainingModpack.ovl switch/.overlays/ovlTrainingModpack.ovl
zip -r training_modpack_beta.zip atmosphere 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
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.
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 11:36:21 -07:00
2020-05-25 15:13:19 -07:00
- `switch/.overlays/ovlTrainingModpack.ovl` is the Tesla submenu
2020-06-07 19:20:24 -07:00
files: >
training_modpack_beta.zip