From 26c29125692ab19bee9bf00af72d68a88a994c3a Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi <76248539+r41k0u@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:08:08 +0530 Subject: [PATCH] Update cpp.yml --- .github/workflows/cpp.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 4ca3717..2b75421 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -20,13 +20,16 @@ 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 install libsdl2-dev fi - name: build run: | if [ "$RUNNER_OS" == "Linux" ]; then - sudo apt-get update && sudo apt-get install xorg-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev + sudo apt-get update && sudo apt-get install xorg-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl2-dev + fi + if [ "$RUNNER_OS" == "macOS" ]; then + brew install SDL2 + brew install SDL2_image fi mkdir build cd build