-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Added CI script for UWP target platform.
- Added ci_uwp.yml script. - Diversified D3D11/D3D12 build configurations for Windows CI script (11.3/12.2 for VS 2022, and 11.0/12.0 for VS 2019). - Updated README.md document with UWP CI badge.
- Loading branch information
1 parent
f2879ef
commit 38b5710
Showing
3 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: MS UWP | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build_uwp: | ||
strategy: | ||
matrix: | ||
target: [ UWP-8_1, UWP-10_0 ] | ||
arch: [x64] | ||
lib: [Shared, Static] | ||
config: [Release, Debug] | ||
fail-fast: false | ||
|
||
runs-on: 'windows-latest' | ||
|
||
env: | ||
README: ${{ github.workspace }}/README.txt | ||
GENERATOR: 'Visual Studio 17 2022' | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
# See https://github.com/actions/runner-images/issues/842 | ||
- name: Install Windows 8.1 SDK | ||
if: matrix.target == 'UWP-8_1' | ||
shell: python | ||
run: | | ||
import subprocess | ||
import urllib.request | ||
urllib.request.urlretrieve("https://go.microsoft.com/fwlink/p/?LinkId=323507", "sdksetup.exe") | ||
subprocess.run(["sdksetup.exe", "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit"], check=True, capture_output=True) | ||
- name: Configure CMake | ||
run: > | ||
cmake -G "${{ env.GENERATOR }}" -A "${{ matrix.arch }}" -S . -B ${{ github.workspace }}/${{ matrix.arch }} | ||
-DCMAKE_TOOLCHAIN_FILE="cmake/Toolchains/Toolchain.${{ matrix.target }}.cmake" | ||
-DLLGL_BUILD_STATIC_LIB=${{ matrix.lib == 'Static' && 'ON' || 'OFF' }} | ||
-DLLGL_BUILD_RENDERER_DIRECT3D11=ON | ||
-DLLGL_BUILD_RENDERER_DIRECT3D12=ON | ||
-DLLGL_BUILD_EXAMPLES=ON | ||
"-DLLGL_D3D11_ENABLE_FEATURELEVEL=${{ matrix.config == 'Release' && 'Direct3D 11.3' || 'Direct3D 11.0'}}" | ||
"-DLLGL_D3D12_ENABLE_FEATURELEVEL=${{ matrix.config == 'Release' && 'Direct3D 12.2' || 'Direct3D 12.0'}}" | ||
- name: Build | ||
run: | | ||
cmake --build ${{ github.workspace }}/${{ matrix.arch }} --config ${{ matrix.config }} | ||
echo "LLGL built with ${{ env.GENERATOR }} for ${{ matrix.arch }} on $(date)." > ${{ env.README }} | ||
echo "Place at root of LLGL repository to run examples and testbed." >> ${{ env.README }} | ||
- name: Upload Binaries | ||
uses: actions/upload-artifact@v4 | ||
if: matrix.arch == 'x64' && matrix.lib == 'Shared' && matrix.config == 'Release' | ||
with: | ||
name: LLGL-${{ matrix.target }}-${{ matrix.config }}-${{ matrix.arch }} | ||
path: | | ||
${{ env.README }} | ||
${{ github.workspace }}/${{ matrix.arch }}/build/${{ matrix.config }}/LLGL*.dll | ||
${{ github.workspace }}/${{ matrix.arch }}/build/${{ matrix.config }}/Example_*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters