mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-23 07:23:01 +02:00
Use github action to download windows dlls #847
This commit is contained in:
32
.github/workflows/cmake.yml
vendored
32
.github/workflows/cmake.yml
vendored
@@ -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/')
|
||||
|
32
.github/workflows/cmake.yml.cmake
vendored
32
.github/workflows/cmake.yml.cmake
vendored
@@ -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/')
|
||||
|
Reference in New Issue
Block a user