forked from Eukaryot/sonic3air
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build for Nintendo Switch | ||
|
||
on: | ||
push: | ||
branches: | ||
- switch # You can change this to your main branch name | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up devkitPro | ||
run: | | ||
git clone https://github.com/devkitPro/pacman.git $HOME/pacman | ||
cd $HOME/pacman | ||
makepkg -si --noconfirm | ||
sudo pacman -S --needed --noconfirm switch-sdl2 switch-libvorbis switch-minizip switch-zlib switch-glad switch-pkg-config switch-cmake | ||
- name: Build for Switch | ||
run: | | ||
mkdir build | ||
cd build | ||
$DEVKITPRO/portlibs/switch/bin/aarch64-none-elf-cmake .. | ||
make -j$(nproc) |