Skip to content

Commit

Permalink
Update cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
r41k0u authored Dec 10, 2023
1 parent 12c8911 commit ee22db2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,26 @@ jobs:
if [ "$RUNNER_OS" == "Linux" ]; then
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get update && sudo apt-get install xorg-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl2-dev
sudo apt-get update && sudo apt-get install xorg-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl2-dev libsdl2-ttf-dev
fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew install SDL2
brew install SDL2_image
brew install SDL2_ttf
fi
if [ "$RUNNER_OS" == "Windows" ]; then
curl -L -O https://www.libsdl.org/release/SDL2-devel-2.28.4-VC.zip
curl -L -O https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-devel-2.20.2-VC.zip
7z x SDL2-devel-2.28.4-VC.zip -oSDL2
7z x SDL2_ttf-devel-2.20.2-VC.zip -oSDL2_ttf
fi
- name: build
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
export SDL2_DIR=D:\\a\\gbemu\\gbemu\\SDL2\\SDL2-2.28.4\\cmake
export SDL2_ttf_DIR=d:\\a\\gbemu\\gbemu\\SDL2_ttf\\SDL2_ttf-2.20.2\\cmake
fi
mkdir build
cd build
Expand Down

0 comments on commit ee22db2

Please sign in to comment.