GHActions: Build latest SDL on linux

Package manager version too old
This commit is contained in:
TellowKrinkle 2021-11-30 21:31:56 -06:00 committed by tellowkrinkle
parent 918f8cbe16
commit 0744bc4004
2 changed files with 22 additions and 1 deletions

View File

@ -92,6 +92,7 @@ jobs:
CCACHE_COMPRESS: true
CCACHE_COMPRESSLEVEL: 9
CCACHE_MAXSIZE: 100M
SDL: SDL2-2.0.16
steps:
# NOTE - useful for debugging
@ -157,6 +158,26 @@ jobs:
COMPILER: ${{ matrix.compiler }}
run: .github/workflows/scripts/linux/install-packages.sh
- name: Cache SDL2
uses: actions/cache@v2.1.7
with:
path: 3rdparty/${{ env.SDL }}
key: ${{ matrix.os }} ${{ matrix.platform }} ${{ env.SDL }}
- name: Build SDL2
run: |
if [[ ! -e 3rdparty/${{ env.SDL }} ]]; then
curl -sL https://libsdl.org/release/${{ env.SDL }}.tar.gz | tar -xzC 3rdparty
cd 3rdparty/${{ env.SDL }}
if [ "${{ matrix.platform }}" == "x86" ]; then
./configure --build=i686-pc-linux-gnu CC=${{ matrix.compiler }} CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 --prefix=/usr --libdir=/usr/lib/i386-linux-gnu
else
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
fi
make -j $(getconf _NPROCESSORS_ONLN) && cd ../../
fi
sudo make -C 3rdparty/${{ env.SDL }} install
- name: Generate CMake
env:
PLATFORM: ${{ matrix.platform }}

View File

@ -24,9 +24,9 @@ declare -a PCSX2_PACKAGES=(
"libpng-dev"
"libpulse-dev"
"librsvg2-dev"
"libsdl2-dev"
"libsamplerate0-dev"
"libsoundtouch-dev"
"libudev-dev"
"libwxgtk3.0-gtk3-dev"
"libx11-xcb-dev"
"libxml2-dev"