1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-24 02:44:17 +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 ]
jobs:
build:
overlay:
runs-on: ubuntu-latest
container: devkitpro/devkita64:latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- 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/v1.0.2/devkitpro-pacman.amd64.deb
- name: Install gdebi-core
run: sudo apt-get install gdebi-core
- name: Install DEVKITPRO
run: DEBIAN_FRONTEND=noninteractive sudo apt install ./devkitpro-pacman.amd64.deb
- name: Install packages
run: printf "\nY" | sudo dkp-pacman -Sy switch-dev
- name: Make Tesla overlay
working-directory: TrainingModpackOverlay
run: DEVKITPRO=/opt/devkitpro make
- name: make
run: make
- 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/download-artifact@v1
with:
name: overlay
- uses: actions/checkout@v2
- name: Install cargo-skyline
run: cargo install --git https://github.com/jam1garner/cargo-skyline
- name: Install rust-std-skyline-squashed
@ -36,7 +40,7 @@ jobs:
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
cp overlay/TrainingModpackOverlay/ovlTrainingModpack.ovl switch/.overlays/ovlTrainingModpack.ovl
zip -r training_modpack_beta.zip atmosphere switch
- name: Update Release
uses: meeDamian/github-release@2.0