2023-04-02 16:04:19 +08:00
|
|
|
name: windows
|
2023-03-11 22:10:18 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
2023-08-15 18:03:41 +08:00
|
|
|
- 1.x
|
2023-03-11 22:10:18 +08:00
|
|
|
|
|
|
|
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'
|
|
|
|
- name: Setup Python
|
2023-03-25 11:14:51 +08:00
|
|
|
uses: actions/setup-python@v4
|
2023-04-02 16:04:19 +08:00
|
|
|
with:
|
|
|
|
python-version: '3.7.8'
|
2023-03-11 22:10:18 +08:00
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
|
|
with:
|
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'
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.7.8'
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
|
|
with:
|
|
|
|
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
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.7.8'
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
|
|
with:
|
|
|
|
arch: 'x64'
|
|
|
|
uwp: true
|
|
|
|
- name: Build
|
|
|
|
shell: pwsh
|
|
|
|
run: .\build.ps1 -p winuwp -a x64
|
|
|
|
- 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: Setup Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.7.8'
|
|
|
|
|
|
|
|
- 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
|