mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-30 22:00:16 +00:00
Update rust.yml
This commit is contained in:
parent
123bb920b7
commit
a5e001bf80
1 changed files with 37 additions and 18 deletions
55
.github/workflows/rust.yml
vendored
55
.github/workflows/rust.yml
vendored
|
@ -8,23 +8,42 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Docment API
|
- name: Sync submodules
|
||||||
run: |
|
run: git submodule sync --recursive && git submodule update --init --recursive
|
||||||
cargo doc --target x86_64-unknown-linux-gnu --target-dir .
|
- name: Download DEVKITPRO
|
||||||
rm -rf ./doc ./debug
|
run: wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
|
||||||
cp ./x86_64-unknown-linux-gnu/doc ./doc -r
|
- name: Install DEVKITPRO
|
||||||
- name: Commit
|
run: sudo dpkg -i devkitpro-pacman.deb
|
||||||
run: |
|
- name: Install dkp-pacman
|
||||||
git config --local user.email "action@github.com"
|
run: printf "\nY" | sudo dkp-pacman -S switch-dev
|
||||||
git config --local user.name "GitHub Action"
|
- name: Make Tesla overlay
|
||||||
git add -A
|
working-directory: TrainingModpackOverlay
|
||||||
git commit -m "Add Documentation"
|
run: make
|
||||||
- name: Push changes
|
- name: Install cargo-skyline
|
||||||
uses: ad-m/github-push-action@master
|
run: cargo install --git https://github.com/jam1garner/cargo-skyline
|
||||||
with:
|
- name: Install rust-std-skyline-squashed
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
run: cd .. && git clone https://github.com/jam1garner/rust-std-skyline-squashed && cd -
|
||||||
branch: gh-pages
|
- name: Attempt to build
|
||||||
force: true
|
run: 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
|
||||||
|
- 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
|
||||||
|
# - name: Upload Release
|
||||||
|
# uses: majkrzak/create-release@latest
|
||||||
|
# with:
|
||||||
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# name: beta
|
||||||
|
# code: beta
|
||||||
|
# body: 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.\n(atmosphere/contents/01006A800016E000/romfs/skyline/plugins/libtraining_modpack.nro is the mod for the game itself, switch/.overlays/ovlTrainingModpack.ovl is the Tesla submenu)
|
||||||
|
# prerelease: true
|
||||||
|
# recreate: true
|
||||||
|
# assets: training_modpack_beta.zip:training_modpack_beta.zip:application/zip
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue