Skip to content

Commit

Permalink
universal env
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Oct 16, 2024
1 parent 8734833 commit f143eb9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push, pull_request]

env:
SDL_VERSION: 2.30.8

jobs:
linux:
name: Linux
Expand Down Expand Up @@ -58,8 +61,6 @@ jobs:
windows-msvc:
name: Windows (MSVC)
runs-on: windows-latest
env:
SDL_VERSION: 2.26.0
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -175,16 +176,16 @@ jobs:
with:
submodules: true

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install ninja-build mingw-w64
- 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}
- 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

Expand Down

0 comments on commit f143eb9

Please sign in to comment.