mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 03:45:38 +00:00
CI: Use cmake for Windows libretro builds
This commit is contained in:
parent
089b1d465f
commit
cf1dec6667
53
.github/workflows/rolling-release.yml
vendored
53
.github/workflows/rolling-release.yml
vendored
|
@ -30,21 +30,8 @@ jobs:
|
||||||
del /Q bin\x64\*.iobj
|
del /Q bin\x64\*.iobj
|
||||||
del /Q bin\x64\*.ipdb
|
del /Q bin\x64\*.ipdb
|
||||||
del /Q bin\x64\common-tests*
|
del /Q bin\x64\common-tests*
|
||||||
|
|
||||||
- name: Create libretro core archive
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
rename bin\x64\duckstation-libretro-* duckstation_libretro.dll
|
|
||||||
del /Q bin\x64\duckstation-libretro-*
|
del /Q bin\x64\duckstation-libretro-*
|
||||||
"C:\Program Files\7-Zip\7z.exe" a -r duckstation_libretro.dll.zip ./bin/x64/duckstation_libretro.dll
|
|
||||||
del /Q bin\x64\duckstation_libretro.dll
|
|
||||||
|
|
||||||
- name: Upload release artifact
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: "windows-x64"
|
|
||||||
path: "duckstation_libretro.dll.zip"
|
|
||||||
|
|
||||||
- name: Create release archive
|
- name: Create release archive
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
@ -57,6 +44,35 @@ jobs:
|
||||||
path: "duckstation-windows-x64-release.7z"
|
path: "duckstation-windows-x64-release.7z"
|
||||||
|
|
||||||
|
|
||||||
|
windows-libretro-build:
|
||||||
|
runs-on: windows-2019
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.1
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Compile release build
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON -DCMAKE_C_COMPILER:FILEPATH="%VCToolsInstallDir%\bin\HostX64\x64\cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="%VCToolsInstallDir%\bin\HostX64\x64\cl.exe" ..
|
||||||
|
ninja
|
||||||
|
|
||||||
|
- name: Create libretro core archive
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation_libretro.dll.zip ./duckstation_libretro.dll
|
||||||
|
|
||||||
|
- name: Upload release artifact
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: "windows-libretro-x64"
|
||||||
|
path: "build/duckstation_libretro.dll.zip"
|
||||||
|
|
||||||
|
|
||||||
linux-build:
|
linux-build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
@ -139,7 +155,7 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
needs: [windows-build, linux-build, linux-libretro-build]
|
needs: [windows-build, windows-libretro-build, linux-build, linux-libretro-build]
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
|
@ -148,6 +164,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: "windows-x64"
|
name: "windows-x64"
|
||||||
|
|
||||||
|
- name: Download Windows libretro x64 Artifact
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: "windows-libretro-x64"
|
||||||
|
|
||||||
- name: Download SDL AppImage Artifact
|
- name: Download SDL AppImage Artifact
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
@ -181,7 +202,7 @@ jobs:
|
||||||
title: "Latest Development Build"
|
title: "Latest Development Build"
|
||||||
files: |
|
files: |
|
||||||
windows-x64/duckstation-windows-x64-release.7z
|
windows-x64/duckstation-windows-x64-release.7z
|
||||||
windows-x64/duckstation_libretro.dll.zip
|
windows-libretro-x64/duckstation_libretro.dll.zip
|
||||||
linux-x64-appimage-sdl/duckstation-sdl-x64.AppImage
|
linux-x64-appimage-sdl/duckstation-sdl-x64.AppImage
|
||||||
linux-x64-appimage-sdl-zsync/duckstation-sdl-x64.AppImage.zsync
|
linux-x64-appimage-sdl-zsync/duckstation-sdl-x64.AppImage.zsync
|
||||||
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
||||||
|
|
Loading…
Reference in a new issue