-
Notifications
You must be signed in to change notification settings - Fork 38
51 lines (42 loc) · 1.15 KB
/
switch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: 'Switch'
on:
push:
branches:
- '*'
pull_request:
types: [ opened, synchronize ]
workflow_dispatch:
jobs:
Build:
strategy:
fail-fast: false
matrix:
include:
- BuildType: Release
runs-on: 'ubuntu-latest'
container:
image: devkitpro/devkita64:latest
options: --user root
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Configure CMake'
run: |
rm -f ./Content/Translations/*.po
git config --global --add safe.directory '*'
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D CMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/Switch.cmake -D NCINE_PREFERRED_BACKEND=SDL2 -D NCINE_WITH_GLEW=OFF
- name: 'Build'
run: |
make -j $(nproc) -C ./_build/
- name: 'Create Package'
run: |
mkdir ./_package/
cp -f ./_build/jazz2.nro ./_package/Jazz2.nro
cp -f ./LICENSE ./_package/LICENSE
- name: 'Upload Package'
uses: actions/upload-artifact@v3
with:
name: Jazz2_Switch
path: ./_package/