axmol/.github/workflows/windows.yml

90 lines
3.2 KiB
YAML
Raw Normal View History

name: windows
on:
push:
branches:
- dev
paths-ignore:
- '**.md'
- 'docs/**'
jobs:
2023-07-01 21:54:12 +08:00
win32:
# 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
with:
2023-07-01 21:54:12 +08:00
arch: 'x64'
- 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
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
# 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
with:
arch: 'x64'
uwp: true
- name: Build
shell: pwsh
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