-
Notifications
You must be signed in to change notification settings - Fork 51
57 lines (42 loc) · 1.34 KB
/
docker-image.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
53
54
55
56
57
name: Build Moonlight-Switch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container:
# image: docker://devkitpro/devkita64:20240120 // Before SDL broken audio
image: docker://devkitpro/devkita64:latest
steps:
- name: Check out repository
uses: actions/checkout@v1
with:
submodules: recursive
- name: Remove useless fonts
run: rm -rf ./resources/font
- name: Remove enet
run: dkp-pacman --noconfirm -R switch-enet
- name: Remove ffmpeg
run: dkp-pacman --noconfirm -R switch-libmpv switch-ffmpeg
- name: Run cmake
continue-on-error: true
run: cmake -B build/switch -DPLATFORM_SWITCH=ON
- name: Dirty second cmake run
run: cmake -B build/switch -DPLATFORM_SWITCH=ON
- name: Run build
run: make -C build/switch Moonlight.nro -j8
- name: Rename artifact
run: mv build/switch/Moonlight.nro build/switch/Moonlight-Switch.nro
- name: Upload Moonlight-Switch.nro
uses: actions/upload-artifact@master
with:
name: Moonlight-Switch.nro
path: build/switch/Moonlight-Switch.nro
- name: Upload Moonlight-Switch.elf
uses: actions/upload-artifact@master
with:
name: Debug.elf
path: build/switch/Moonlight.elf