Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vinegar97 authored Oct 5, 2023
1 parent f211f35 commit 2f2682e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
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)

0 comments on commit 2f2682e

Please sign in to comment.