Skip to content

Commit 849827e

Browse files
committed
switch: add github workflow
1 parent 880f314 commit 849827e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/switch.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build (Nintendo Switch)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
switch:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: devkitpro/devkita64:latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Configure
13+
run: |
14+
. /opt/devkitpro/switchvars.sh \
15+
mkdir _build && cd _build \
16+
../configure --host=aarch64-none-elf \
17+
--prefix=switch-sdl2 \
18+
--disable-shared --enable-static \
19+
--enable-audio \
20+
--enable-joystick \
21+
--disable-power \
22+
--disable-filesystem \
23+
--enable-cpuinfo \
24+
--enable-pthreads \
25+
--enable-timers \
26+
--enable-video
27+
- name: Build
28+
run: make
29+
- name: install
30+
run: make -C _build install

0 commit comments

Comments
 (0)