From 4f872844541f3809d8e5f9d2d48f03cea9e4ede0 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi <76248539+r41k0u@users.noreply.github.com> Date: Thu, 12 Oct 2023 01:28:56 +0530 Subject: [PATCH] Update cpp.yml --- .github/workflows/cpp.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index b45c651..da6689d 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -21,12 +21,6 @@ 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 - fi - - - name: build - shell: bash - run: | - if [ "$RUNNER_OS" == "Linux" ]; then 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 @@ -40,6 +34,10 @@ jobs: echo "SDL2_LIB=${{ github.workspace }}/SDL2/SDL2-2.0.14/lib/x64" >> $GITHUB_ENV echo "SDL2_INCLUDE=${{ github.workspace }}/SDL2/SDL2-2.0.14/include" >> $GITHUB_ENV fi + + - name: build + shell: bash + run: | mkdir build cd build cmake ..