From c903c9fcd68340cbc22793bc752e77ff4283964b Mon Sep 17 00:00:00 2001 From: Charlie Bruce Date: Sat, 11 Jan 2020 06:42:41 +0000 Subject: [PATCH] Build SDL2 from source --- .github/workflows/build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02f633d5..a6479661 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,26 @@ jobs: git submodule sync --recursive git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 - name: Install requirements - run: brew install sdl2 sdl2_mixer + run: | + mkdir -p lib + cd lib + wget https://www.libsdl.org/release/SDL2-2.0.10.zip + wget https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.zip + unzip SDL2-2.0.10.zip + unzip SDL2_mixer-2.0.4.zip + cd SDL2-2.0.10 + mkdir build + cd build + ../configure + make -j4 + sudo make install + cd ../../ + cd SDL2_mixer-2.0.4 + mkdir build + cd build + ../configure + make + sudo make install - name: Build run: cd desktop_version/ && mkdir build && cd build && cmake .. && make - name: Upload artifacts (MacOS)