1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-24 10:54:16 +00:00

use DKP Docker container

This commit is contained in:
jugeeya 2020-07-05 15:29:49 -07:00 committed by GitHub
parent 746252ba50
commit e3c2442eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,24 +5,28 @@ on:
branches: [ master ] branches: [ master ]
jobs: jobs:
build: overlay:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: devkitpro/devkita64:latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@master
- name: Sync submodules - name: Sync submodules
run: git submodule sync --recursive && git submodule update --init --recursive run: git submodule sync --recursive && git submodule update --init --recursive
- name: Download DEVKITPRO - name: make
run: wget https://github.com/devkitPro/pacman/releases/download/v1.0.2/devkitpro-pacman.amd64.deb run: make
- name: Install gdebi-core - name: Upload build artifact
run: sudo apt-get install gdebi-core uses: actions/upload-artifact@v1
- name: Install DEVKITPRO with:
run: DEBIAN_FRONTEND=noninteractive sudo apt install ./devkitpro-pacman.amd64.deb name: overlay
- name: Install packages path: TrainingModpackOverlay/ovlTrainingModpack.ovl
run: printf "\nY" | sudo dkp-pacman -Sy switch-dev upload:
- name: Make Tesla overlay runs-on: ubuntu-latest
working-directory: TrainingModpackOverlay needs: overlay
run: DEVKITPRO=/opt/devkitpro make steps:
- uses: actions/download-artifact@v1
with:
name: overlay
- uses: actions/checkout@v2
- name: Install cargo-skyline - name: Install cargo-skyline
run: cargo install --git https://github.com/jam1garner/cargo-skyline run: cargo install --git https://github.com/jam1garner/cargo-skyline
- name: Install rust-std-skyline-squashed - name: Install rust-std-skyline-squashed
@ -36,7 +40,7 @@ jobs:
mkdir -p atmosphere/contents/01006A800016E000/romfs/skyline/plugins/ 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 cp ./target/aarch64-skyline-switch/release/libtraining_modpack.nro atmosphere/contents/01006A800016E000/romfs/skyline/plugins/libtraining_modpack.nro
mkdir -p switch/.overlays/ mkdir -p switch/.overlays/
cp TrainingModpackOverlay/ovlTrainingModpack.ovl switch/.overlays/ovlTrainingModpack.ovl cp overlay/TrainingModpackOverlay/ovlTrainingModpack.ovl switch/.overlays/ovlTrainingModpack.ovl
zip -r training_modpack_beta.zip atmosphere switch zip -r training_modpack_beta.zip atmosphere switch
- name: Update Release - name: Update Release
uses: meeDamian/github-release@2.0 uses: meeDamian/github-release@2.0