2023-04-02 16:04:19 +08:00
|
|
|
name: windows
|
2023-03-11 22:10:18 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'docs/**'
|
|
|
|
|
|
|
|
jobs:
|
2023-07-01 21:54:12 +08:00
|
|
|
win32:
|
2023-03-11 22:10:18 +08:00
|
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
2023-09-26 00:56:43 +08:00
|
|
|
with:
|
|
|
|
toolset: '14.37'
|
2023-07-01 21:54:12 +08:00
|
|
|
arch: 'x64'
|
2023-03-11 22:10:18 +08:00
|
|
|
- name: Build
|
2023-07-01 21:54:12 +08:00
|
|
|
shell: pwsh
|
|
|
|
run: .\build.ps1 -p win32 -a x64
|
|
|
|
win32-dll:
|
|
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
2023-09-26 00:56:43 +08:00
|
|
|
with:
|
|
|
|
toolset: '14.37'
|
2023-07-01 21:54:12 +08:00
|
|
|
arch: 'x64'
|
|
|
|
- name: Build
|
|
|
|
shell: pwsh
|
|
|
|
run: .\build.ps1 -p win32 -a x64 -dll true
|
|
|
|
winuwp:
|
|
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
2023-09-26 00:11:33 +08:00
|
|
|
# build uwp debug avoid github CI fail with memory issue
|
2023-07-01 21:54:12 +08:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
2023-09-26 00:56:43 +08:00
|
|
|
with:
|
|
|
|
toolset: '14.37'
|
2023-07-01 21:54:12 +08:00
|
|
|
arch: 'x64'
|
|
|
|
uwp: true
|
|
|
|
- name: Build
|
|
|
|
shell: pwsh
|
2023-09-26 00:11:33 +08:00
|
|
|
run: .\build.ps1 -p winuwp -a x64 -xb '--config','Debug'
|
2023-07-01 21:54:12 +08:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: x64
|
|
|
|
path: |
|
|
|
|
build_*/tests/**/AppPackages/**/*.msix
|
|
|
|
win32-clang:
|
|
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
|
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
|
|
# Test winsdk < 10.0.22000.0 (missing C11 standard stdalign.h), axmol will auto fallback to C99 for resolving compiling issue.
|
|
|
|
WINSDK_VER: '10.0.19041.0'
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
|
|
|
- name: Install LLVM and Clang
|
|
|
|
uses: KyleMayes/install-llvm-action@v1
|
|
|
|
with:
|
|
|
|
version: "16.0"
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
shell: pwsh
|
|
|
|
run: .\build.ps1 -p win32 -a 'x64' -cc clang -winsdk $env:WINSDK_VER
|