-
Notifications
You must be signed in to change notification settings - Fork 152
55 lines (47 loc) · 1.44 KB
/
build-uwp.yml
File metadata and controls
55 lines (47 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build UWP
on:
workflow_call:
inputs:
platform:
required: true
type: string
napi-type:
required: false
type: string
default: direct
env:
CMAKE_VERSION: '3.31.6'
jobs:
build:
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: ${{ env.CMAKE_VERSION }}
- name: Set NAPI variables
id: napi
shell: bash
run: |
if [ "${{ inputs.napi-type }}" = "jsi" ]; then
echo "suffix=_JSI" >> "$GITHUB_OUTPUT"
echo "define=-DNAPI_JAVASCRIPT_ENGINE=JSI" >> "$GITHUB_OUTPUT"
else
echo "suffix=" >> "$GITHUB_OUTPUT"
echo "define=" >> "$GITHUB_OUTPUT"
fi
- name: Generate UWP solution
shell: cmd
run: |
cmake -G "Visual Studio 17 2022" ^
-B build/UWP_${{ inputs.platform }}${{ steps.napi.outputs.suffix }} ^
-D CMAKE_SYSTEM_NAME=WindowsStore ^
-D CMAKE_SYSTEM_VERSION=10.0 ^
${{ steps.napi.outputs.define }} ^
-A ${{ inputs.platform }} ^
-D BABYLON_DEBUG_TRACE=ON
- name: Build UWP
shell: cmd
run: |
cmake --build build/UWP_${{ inputs.platform }}${{ steps.napi.outputs.suffix }} --config RelWithDebInfo -- /m /p:AppxPackageSigningEnabled=false