mirror of
https://github.com/rock88/moonlight-nx
synced 2024-11-24 20:43:08 +00:00
Try to fix docker build
This commit is contained in:
parent
fba49bf66d
commit
35bb69a08d
3 changed files with 4 additions and 15 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -14,8 +14,6 @@ jobs:
|
|||
container:
|
||||
image: docker://florianpiesche/moonlight-nx-build:latest
|
||||
env:
|
||||
# Set this to empty to skip building libcurl 7.69.1-1
|
||||
LIBCURL_PKGBUILD_URL: https://github.com/devkitPro/pacman-packages/raw/1582ad85914b14497fae32a9fe9074c0374f99f7/switch/curl/PKGBUILD
|
||||
# As pkgbuild needs to run unprivileged, this defines the user it will be run as
|
||||
LIBCURL_BUILD_USER: build
|
||||
|
||||
|
|
|
@ -11,4 +11,7 @@ RUN echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/s
|
|||
# Install devkitpro-pkgbuild-helpers
|
||||
RUN dkp-pacman -S --noconfirm devkitpro-pkgbuild-helpers
|
||||
|
||||
# Upgrade installed packages
|
||||
RUN dkp-pacman -Suy --noconfirm
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
|
14
build.sh
14
build.sh
|
@ -3,19 +3,7 @@
|
|||
# Exit with an error code if any of the commands fail
|
||||
set -e
|
||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
|
||||
|
||||
# Compile and deploy custom libcurl if a PKGBUILD url is set
|
||||
if [[ ! -z $LIBCURL_PKGBUILD_URL ]]; then
|
||||
curdir=$(pwd)
|
||||
mkdir switch-libcurl
|
||||
chown ${LIBCURL_BUILD_USER} switch-libcurl
|
||||
cd switch-libcurl
|
||||
wget ${LIBCURL_PKGBUILD_URL}
|
||||
sudo -u ${LIBCURL_BUILD_USER} dkp-makepkg
|
||||
cp -r pkg/switch-curl/opt/devkitpro/portlibs/switch/* /opt/devkitpro/portlibs/switch
|
||||
cd ${curdir}
|
||||
fi
|
||||
trap 'echo "\"${last_command}\" command failed with exit code $?."' EXIT
|
||||
|
||||
# Run build
|
||||
make -j NIGHTLY_BUILD=`git rev-parse --short "$GITHUB_SHA"`
|
||||
|
|
Loading…
Reference in a new issue