2021-07-09 18:37:22 +01:00
|
|
|
name: Nintendo Switch (by devkitPro)
|
2021-06-09 22:52:51 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
release:
|
|
|
|
types: published
|
|
|
|
jobs:
|
|
|
|
build-nintendo-switch:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: devkitpro/devkita64:latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: "Build files"
|
|
|
|
run: |
|
2021-06-22 18:47:36 +01:00
|
|
|
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S. -Bbuild -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW -DLIBRW_INSTALL=True
|
2021-06-17 22:44:07 +01:00
|
|
|
cmake --build build --parallel
|
2021-06-09 22:52:51 +01:00
|
|
|
- name: "Create binary package (cpack)"
|
|
|
|
working-directory: ./build
|
|
|
|
run: |
|
|
|
|
cpack
|
|
|
|
- name: "Archive binary package (github artifacts)"
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: "switch-gl3"
|
|
|
|
path: build/*.tar.xz
|
|
|
|
if-no-files-found: error
|