build: fix GH jobs

This commit is contained in:
Marcin Kurczewski 2023-09-21 17:38:17 +02:00
parent a38bd83dbd
commit 0da996864c
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
6 changed files with 11 additions and 11 deletions

View file

@ -20,7 +20,7 @@ RUN apt-get update \
# libav
FROM base as libav
FROM base AS libav
RUN apt-get install -y \
nasm \
gcc \
@ -68,7 +68,7 @@ RUN cd FFmpeg \
# SDL
FROM base as sdl
FROM base AS sdl
RUN git clone https://github.com/libsdl-org/SDL -b SDL2
RUN apt-get install -y \
libgl1-mesa-dev \

View file

@ -11,8 +11,8 @@ fi
cd /app/build/linux; meson compile
if [ "$TARGET" = release ]; then
for file in Tomb1Main; do
upx -t "$file" || ( strip "$file" && upx "$file" )
done
exe_file=Tomb1Main
if ! upx -t "$exe_file"; then
strip "$exe_file" && upx "$exe_file"
fi
fi