From 849827e784ea5a92bd5e0b8bd4ec1b27fe5defe1 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sat, 20 Jan 2024 17:37:18 +0000 Subject: [PATCH] switch: add github workflow --- .github/workflows/switch.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/switch.yml diff --git a/.github/workflows/switch.yml b/.github/workflows/switch.yml new file mode 100644 index 0000000000000..3ec5ae313db50 --- /dev/null +++ b/.github/workflows/switch.yml @@ -0,0 +1,30 @@ +name: Build (Nintendo Switch) + +on: [push, pull_request] + +jobs: + switch: + runs-on: ubuntu-latest + container: + image: devkitpro/devkita64:latest + steps: + - uses: actions/checkout@v3 + - name: Configure + run: | + . /opt/devkitpro/switchvars.sh \ + mkdir _build && cd _build \ + ../configure --host=aarch64-none-elf \ + --prefix=switch-sdl2 \ + --disable-shared --enable-static \ + --enable-audio \ + --enable-joystick \ + --disable-power \ + --disable-filesystem \ + --enable-cpuinfo \ + --enable-pthreads \ + --enable-timers \ + --enable-video + - name: Build + run: make + - name: install + run: make -C _build install