Skip to content

Commit

Permalink
use bash env
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Oct 16, 2024
1 parent f143eb9 commit 0fc3a91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ jobs:

- name: Download SDL
run: |
curl -LO /~https://github.com/libsdl-org/SDL/releases/download/release-$env:SDL_VERSION/SDL2-devel-$env:SDL_VERSION-mingw.tar.gz
tar -xvf SDL2-devel-$env:SDL_VERSION-mingw.tar.gz -C ${GITHUB_WORKSPACE}
curl -LO /~https://github.com/libsdl-org/SDL/releases/download/release-$SDL_VERSION/SDL2-devel-$SDL_VERSION-mingw.tar.gz
tar -xvf SDL2-devel-$SDL_VERSION-mingw.tar.gz -C ${GITHUB_WORKSPACE}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install ninja-build mingw-w64
- name: CMake configure (Release)
run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=mingw-w64-x86_64.cmake -DSDL2_LIBRARIES=${GITHUB_WORKSPACE}/SDL2-$env:SDL_VERSION/bin/SDL2.dll -DSDL2_INCLUDE_DIRS=${GITHUB_WORKSPACE}/SDL2-$env:SDL_VERSION/include
run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=mingw-w64-x86_64.cmake -DSDL2_LIBRARIES=${GITHUB_WORKSPACE}/SDL2-$SDL_VERSION/x86_64-w64-mingw32/bin/SDL2.dll -DSDL2_INCLUDE_DIRS=${GITHUB_WORKSPACE}/SDL2-$SDL_VERSION/x86_64-w64-mingw32/include

- name: Build (Release)
run: ninja -C release
Expand Down

0 comments on commit 0fc3a91

Please sign in to comment.