diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2fd736f..aa2161d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,12 +15,8 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Download and Install MinGW - run: | - # Download MinGW - Invoke-WebRequest -Uri "https://github.com/niXman/mingw-builds-binaries/releases/download/12.2.0-rt_v10-rev2/x86_64-12.2.0-release-win32-seh-rt_v10-rev2.7z" -OutFile mingw.7z - # Extract MinGW - 7z x mingw.7z -oC:\mingw64 + - name: Install MinGW + run: choco install mingw --version=8.1.0 - name: Download and Install SDL2 run: | @@ -29,12 +25,32 @@ jobs: mkdir -p C:\mingw64\lib # Download SDL2 development libraries - Invoke-WebRequest -Uri https://www.libsdl.org/release/SDL2-devel-2.0.14-mingw.zip -OutFile SDL2.zip + Invoke-WebRequest -Uri https://github.com/libsdl-org/SDL/releases/download/release-2.30.11/SDL2-devel-2.30.11-mingw.zip -OutFile SDL2.zip 7z x SDL2.zip -oSDL2 # Copy headers and libs to appropriate directories - xcopy SDL2\SDL2-2.0.14\x86_64-w64-mingw32\include\SDL2 C:\mingw64\include\SDL2 /E /I /Y - xcopy SDL2\SDL2-2.0.14\x86_64-w64-mingw32\lib C:\mingw64\lib /E /I /Y + xcopy SDL2\SDL2-2.30.11\x86_64-w64-mingw32\include\SDL2 C:\mingw64\include\SDL2 /E /I /Y + xcopy SDL2\SDL2-2.30.11\x86_64-w64-mingw32\lib C:\mingw64\lib /E /I /Y + + - name: Download and Install SDL2_image + run: | + # Download SDL2_image development libraries + Invoke-WebRequest -Uri https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.4/SDL2_image-devel-2.8.4-mingw.zip -OutFile SDL2_image.zip + 7z x SDL2_image.zip -oSDL2_image + + # Copy headers and libs to appropriate directories + xcopy SDL2_image\SDL2_image-2.8.4\x86_64-w64-mingw32\include\SDL2 C:\mingw64\include\SDL2 /E /I /Y + xcopy SDL2_image\SDL2_image-2.8.4\x86_64-w64-mingw32\lib C:\mingw64\lib /E /I /Y + + - name: Download and Install SDL2_ttf + run: | + # Download SDL2_ttf development libraries + Invoke-WebRequest -Uri https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.22.0/SDL2_ttf-devel-2.22.0-mingw.zip -OutFile SDL2_ttf.zip + 7z x SDL2_ttf.zip -oSDL2_ttf + + # Copy headers and libs to appropriate directories + xcopy SDL2_ttf\SDL2_ttf-2.22.0\x86_64-w64-mingw32\include\SDL2 C:\mingw64\include\SDL2 /E /I /Y + xcopy SDL2_ttf\SDL2_ttf-2.22.0\x86_64-w64-mingw32\lib C:\mingw64\lib /E /I /Y - name: Add MinGW and SDL2 to PATH run: echo "C:\mingw64\bin" >> $GITHUB_PATH