Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
GA: Fix Windows job
Browse files Browse the repository at this point in the history
  • Loading branch information
tuorqai committed Mar 29, 2024
1 parent 3b8d72e commit 158eff7
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,20 @@ jobs:

env:
SDL_VERSION: 2.28.5
SDL_IMAGE_VERSION: 2.8.2

steps:
- uses: actions/checkout@v3

- name: Cache SDL
uses: actions/cache@v2
env:
cache-name: cache-sdl
with:
path: C:\SDL
key: win32-build-${{ env.cache-name }}

- name: Download SDL
run: |
if (-Not (Test-Path C:\SDL))
{
Invoke-WebRequest "https://github.com/libsdl-org/SDL/releases/download/release-$env:SDL_VERSION/SDL2-devel-$env:SDL_VERSION-VC.zip" -o C:\SDL.zip
Expand-Archive C:\SDL.zip -DestinationPath C:\
}
Invoke-WebRequest "https://github.com/libsdl-org/SDL/releases/download/release-$env:SDL_VERSION/SDL2-devel-$env:SDL_VERSION-VC.zip" -OutFile C:\SDL.zip
Invoke-WebRequest "https://github.com/libsdl-org/SDL_image/releases/download/release-$env:SDL_IMAGE_VERSION/SDL2_image-devel-$env:SDL_IMAGE_VERSION-VC.zip" -OutFile C:\SDL_image.zip
Expand-Archive C:\SDL.zip -DestinationPath C:\
Expand-Archive C:\SDL_image.zip -DestinationPath C:\
- name: Configure
run: cmake -A Win32 -B build -DCMAKE_PREFIX_PATH="C:/SDL2-$env:SDL_VERSION/cmake"
run: cmake -A Win32 -B build -DCMAKE_PREFIX_PATH="C:/SDL2-$env:SDL_VERSION/cmake;C:/SDL2_image-$env:SDL_IMAGE_VERSION/cmake"

- name: Build
run: cmake --build build --config Release
Expand Down

0 comments on commit 158eff7

Please sign in to comment.