mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Use prebuilt Docker Image for Switch CI (#301)
This commit is contained in:
parent
d4b4681a0f
commit
a9e50e46ea
5 changed files with 1 additions and 94 deletions
2
.github/workflows/switch.yml
vendored
2
.github/workflows/switch.yml
vendored
|
@ -11,8 +11,6 @@ jobs:
|
|||
run: |
|
||||
git submodule init
|
||||
git submodule update
|
||||
- name: Docker Build
|
||||
run: scripts/switch/build-docker-image.sh
|
||||
- name: Build Chiaki
|
||||
run: scripts/switch/run-docker-build-chiaki.sh
|
||||
|
||||
|
|
|
@ -1,80 +0,0 @@
|
|||
FROM archlinux:latest
|
||||
|
||||
ENV DEVKITPRO=/opt/devkitpro
|
||||
ENV DEVKITARM=/opt/devkitpro/devkitARM
|
||||
ENV DEVKITPPC=/opt/devkitpro/devkitPPC
|
||||
ENV PATH="${PATH}:${DEVKITARM}/bin/:${DEVKITPPC}/bin/"
|
||||
|
||||
ENV WORKDIR="/build"
|
||||
WORKDIR "${WORKDIR}"
|
||||
|
||||
# Upgrade image
|
||||
RUN pacman --noconfirm -Syu
|
||||
|
||||
# Install requirements for libtransistor
|
||||
RUN pacman --noconfirm -S \
|
||||
llvm \
|
||||
clang \
|
||||
lld \
|
||||
python \
|
||||
python-pip \
|
||||
python-virtualenv \
|
||||
squashfs-tools \
|
||||
base-devel \
|
||||
git \
|
||||
cmake \
|
||||
libx11 \
|
||||
vim
|
||||
|
||||
RUN pacman-key --init
|
||||
# Install devkitpro
|
||||
# doc source :
|
||||
# https://devkitpro.org/wiki/devkitPro_pacman
|
||||
|
||||
# First import the key which is used to validate the packages
|
||||
RUN pacman-key --recv-keys F7FD5492264BB9D0
|
||||
RUN pacman-key --lsign F7FD5492264BB9D0
|
||||
|
||||
# Add the devkitPro repositories
|
||||
ADD devkit_repo ./devkit_repo
|
||||
RUN cat ./devkit_repo >> /etc/pacman.conf
|
||||
# Install the keyring which adds more keys which may be used to verify the packages.
|
||||
RUN pacman --noconfirm -U https://downloads.devkitpro.org/devkitpro-keyring-r1.787e015-2-any.pkg.tar.xz
|
||||
# Now resync the database and update installed packages.
|
||||
RUN pacman -Sy
|
||||
|
||||
RUN pacman --noconfirm -Syu
|
||||
|
||||
#RUN pacman --noconfirm -S $(pacman -Slq dkp-libs)
|
||||
|
||||
RUN pacman --noconfirm -S \
|
||||
protobuf \
|
||||
python-protobuf \
|
||||
sfml \
|
||||
devkitARM \
|
||||
switch-pkg-config \
|
||||
devkitpro-pkgbuild-helpers \
|
||||
switch-dev \
|
||||
switch-zlib \
|
||||
switch-sdl2 \
|
||||
switch-freetype \
|
||||
switch-curl \
|
||||
switch-mesa \
|
||||
switch-glad \
|
||||
switch-glm \
|
||||
switch-libconfig \
|
||||
switch-sdl2_gfx \
|
||||
switch-sdl2_ttf \
|
||||
switch-sdl2_image \
|
||||
switch-libexpat \
|
||||
switch-bzip2 \
|
||||
switch-libopus \
|
||||
switch-ffmpeg \
|
||||
switch-mbedtls
|
||||
|
||||
# RUN pip3 install -U pip
|
||||
|
||||
VOLUME ${WORKDIR}
|
||||
# nxlink server port
|
||||
EXPOSE 28771
|
||||
ENTRYPOINT ["/bin/bash"]
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd "`dirname $(readlink -f ${0})`"
|
||||
|
||||
docker build "$@" -t chiaki-switch .
|
|
@ -1,6 +0,0 @@
|
|||
[dkp-libs]
|
||||
Server = http://downloads.devkitpro.org/packages
|
||||
|
||||
[dkp-linux]
|
||||
Server = http://downloads.devkitpro.org/packages/linux
|
||||
|
|
@ -5,6 +5,6 @@ cd "`dirname $(readlink -f ${0})`/../.."
|
|||
docker run \
|
||||
-v "`pwd`:/build/chiaki" \
|
||||
-t \
|
||||
chiaki-switch \
|
||||
thestr4ng3r/chiaki-build-switch \
|
||||
-c "cd /build/chiaki && scripts/switch/build.sh"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue