From a5e001bf808ed0dd79bf1f5f9a5a30edf9cec48d Mon Sep 17 00:00:00 2001 From: jugeeya Date: Sun, 17 May 2020 10:41:48 -0700 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 55 +++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b6ddcc9..6c4d10f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,23 +8,42 @@ jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - - name: Docment API - run: | - cargo doc --target x86_64-unknown-linux-gnu --target-dir . - rm -rf ./doc ./debug - cp ./x86_64-unknown-linux-gnu/doc ./doc -r - - name: Commit - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add -A - git commit -m "Add Documentation" - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - force: true + - 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 + run: make + - 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 - + - name: Attempt to build + 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 + + +