Use github action to download windows dlls #847

This commit is contained in:
Cong
2025-03-07 22:22:21 +11:00
parent 3c7e80b130
commit f0f0e2959a
2 changed files with 60 additions and 4 deletions

View File

@@ -106,10 +106,38 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}} -VV
- name: Download DLLs on tags (Windows)
- name: Download SDL2 DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://www.libsdl.org/release/SDL2-2.26.4-win32-x64.zip'
file-name: 'sdl2.zip'
location: './dll'
- name: Download SDL2_image DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.8.1-win32-x64.zip'
file-name: 'sdl2_image.zip'
location: './dll'
- name: Download SDL2_mixer DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.6.3-win32-x64.zip'
file-name: 'sdl2_mixer.zip'
location: './dll'
- name: Extract SDL2 DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
run: |
build/windows/get-sdl2-dlls.bat dll 64
cd dll
7z x -y sdl2.zip
7z x -y sdl2_image.zip
7z x -y sdl2_mixer.zip
copy .\optional\*.dll .
- name: Make package on tags
if: startsWith(github.ref, 'refs/tags/')

View File

@@ -106,10 +106,38 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}} -VV
- name: Download DLLs on tags (Windows)
- name: Download SDL2 DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://www.libsdl.org/release/SDL2-2.26.4-win32-x64.zip'
file-name: 'sdl2.zip'
location: './dll'
- name: Download SDL2_image DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.8.1-win32-x64.zip'
file-name: 'sdl2_image.zip'
location: './dll'
- name: Download SDL2_mixer DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.6.3-win32-x64.zip'
file-name: 'sdl2_mixer.zip'
location: './dll'
- name: Extract SDL2 DLLs on tags (Windows)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
run: |
build/windows/get-sdl2-dlls.bat dll 64
cd dll
7z x -y sdl2.zip
7z x -y sdl2_image.zip
7z x -y sdl2_mixer.zip
copy .\optional\*.dll .
- name: Make package on tags
if: startsWith(github.ref, 'refs/tags/')