Skip to content

Commit

Permalink
Install sdl via apt
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Feb 8, 2025
1 parent 00e4d80 commit 7639481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,14 @@ jobs:
if: matrix.os == 'ubuntu-latest'
uses: Homebrew/actions/setup-homebrew@master

- name: Install SDL via homebrew (Linux)
# Because ubuntu 22 doesn't have the latest SDL libs
if: matrix.os == 'ubuntu-latest'
run: brew install sdl2 sdl2_mixer sdl2_image

- name: Install packages (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt install python3-pip libgl1-mesa-dev
# Extra libs to fix "Could NOT find libxmp"
sudo apt install libxmp-dev libwavpack-dev libfluidsynth-dev fluidsynth
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
python3 -m pip install protobuf --break-system-packages
pip3 install --upgrade protobuf --break-system-packages
# libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
- name: Set up GCC (Linux)
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/cmake.yml.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,14 @@ jobs:
if: matrix.os == 'ubuntu-latest'
uses: Homebrew/actions/setup-homebrew@master

- name: Install SDL via homebrew (Linux)
# Because ubuntu 22 doesn't have the latest SDL libs
if: matrix.os == 'ubuntu-latest'
run: brew install sdl2 sdl2_mixer sdl2_image

- name: Install packages (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt install python3-pip libgl1-mesa-dev
# Extra libs to fix "Could NOT find libxmp"
sudo apt install libxmp-dev libwavpack-dev libfluidsynth-dev fluidsynth
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
python3 -m pip install protobuf --break-system-packages
pip3 install --upgrade protobuf --break-system-packages
# libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev

- name: Set up GCC (Linux)
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
Expand Down

0 comments on commit 7639481

Please sign in to comment.