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:
parent
746252ba50
commit
e3c2442eae
1 changed files with 19 additions and 15 deletions
34
.github/workflows/rust.yml
vendored
34
.github/workflows/rust.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue