-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build Moonlight-Switch | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: docker://devkitpro/devkita64:20240120 | ||
|
||
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: 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: Upload Moonlight-Switch.nro | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: Moonlight-Switch | ||
path: build/switch/Moonlight.nro | ||
|
||
- name: Upload Moonlight-Switch.elf | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: Debug.elf | ||
path: build/switch/Moonlight.elf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk add pacman wget make cmake | ||
|
||
ENV DEVKITPRO=/opt/devkitpro | ||
|
||
RUN pacman-key --init && \ | ||
pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com && \ | ||
pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0 | ||
|
||
RUN wget https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.xz && \ | ||
pacman --noconfirm -U devkitpro-keyring.pkg.tar.xz && \ | ||
rm devkitpro-keyring.pkg.tar.xz | ||
|
||
RUN echo $'[dkp-libs] \n\ | ||
Server = https://pkg.devkitpro.org/packages \n\ | ||
\n\ | ||
[dkp-linux] \n\ | ||
Server = https://pkg.devkitpro.org/packages/linux/$arch/ \n\ | ||
' >> /etc/pacman.conf | ||
|
||
RUN pacman --noconfirm -Suy | ||
RUN pacman-key --populate | ||
RUN pacman-key --refresh-keys | ||
|
||
RUN pacman --noconfirm -Suy deko3d libnx switch-pkg-config | ||
RUN pacman --noconfirm -Suy devkit-env devkitA64 devkitA64-gdb general-tools switch-tools uam | ||
|
||
# RUN pacman --noconfirm -Suy switch-dev | ||
|
||
RUN pacman --noconfirm -Suy switch-ffmpeg \ | ||
switch-mbedtls \ | ||
switch-sdl2 \ | ||
switch-curl \ | ||
switch-libexpat \ | ||
switch-jansson \ | ||
switch-glfw \ | ||
switch-glm \ | ||
switch-libvpx \ | ||
switch-glad \ | ||
switch-libopus | ||
|
||
|
||
RUN pacman --noconfirm -Suy switch-dev | ||
|
||
# CMD cmake -B build/switch -DPLATFORM_SWITCH=ON ..; make -C build/switch Moonlight.nro -j8 |