Update switch.yml #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nintendo Switch | |
on: | |
push: | |
branches: [ gha-switch ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
container: devkitpro/devkita64:20210726 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v1 | |
- name: make clean | |
run: make PLATFORM=Switch clean | |
working-directory: Oxygen/sonic3air/build/_make | |
- name: make | |
run: make PLATFORM=Switch | |
working-directory: Oxygen/sonic3air/build/_make | |
- name: Create directory structure | |
working-directory: Oxygen/sonic3air/build/_make | |
run: | | |
mkdir -p bin/Switch/sd/switch/sonic3air | |
mv bin/Switch/sonic3air.nro bin/Switch/sd/switch/sonic3air/ | |
cp -r -v ../../../sonic3air/_master_image_template/* bin/Switch/sd/switch/sonic3air/ | |
cp -v ../../../oxygenengine/_master_image_template/Handbook.pdf bin/Switch/sd/switch/sonic3air/bonus/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sonic3air_game-switch | |
path: Oxygen/sonic3air/build/_make/bin/ |