-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (44 loc) · 1.31 KB
/
nintendo.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
52
name: Nintendo CI
on:
push:
branches: ['main']
pull_request:
workflow_dispatch:
jobs:
nintendo-build:
name: Nintendo ${{ matrix.config.name }} CI
runs-on: ubuntu-24.04
container:
image: devkitpro/${{ matrix.config.container }} ## base on debian:buster-slim
strategy:
fail-fast: false
matrix:
config:
- name: 3ds
extension: 3dsx
container: devkitarm
- name: switch
extension: nro
container: devkita64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Setup Meson
run: |
sudo apt-get update
sudo apt-get install python3 python3-pip -y --no-install-recommends
python3 -m pip install --upgrade pip
pip install meson
- name: Setup ninja
run: |
sudo apt-get update
sudo apt-get install ninja-build -y --no-install-recommends
- name: Configure and Build
run: |
bash ./platforms/build-${{ matrix.config.name }}.sh complete_rebuild release
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.name }} Executable
path: build-${{ matrix.config.name }}/oopetris.${{ matrix.config.extension }}