Skip to content

Commit 1536a7e

Browse files
Update build to try only building for wasm in linux job
1 parent 7bc4eb0 commit 1536a7e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ env:
2121
ENABLE_DIAGNOSTICS: false
2222
#COREHOST_TRACE: 1
2323
COREHOST_TRACEFILE: corehosttrace.log
24+
MULTI_TARGET_DIRECTORY: tooling/MultiTarget
25+
HEADS_DIRECTORY: tooling/ProjectHeads
2426

2527
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2628
jobs:
@@ -60,7 +62,6 @@ jobs:
6062
platform: [WinUI2, WinUI3]
6163

6264
env:
63-
MULTI_TARGET_DIRECTORY: tooling/MultiTarget
6465
# faux-ternary expression to select which platforms to build for each platform vs. duplicating step below.
6566
TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all' || 'all-uwp' }}
6667
TEST_PLATFORM: ${{ matrix.platform != 'WinUI3' && 'UWP' || 'WinAppSdk' }}
@@ -153,8 +154,6 @@ jobs:
153154

154155
wasm-linux:
155156
runs-on: ubuntu-latest
156-
env:
157-
HEADS_DIRECTORY: tooling/ProjectHeads
158157

159158
steps:
160159
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
@@ -176,6 +175,10 @@ jobs:
176175
- name: Restore dotnet tools
177176
run: dotnet tool restore
178177

178+
- name: Enable WASM TargetFrameworks
179+
working-directory: ./${{ env.MULTI_TARGET_DIRECTORY }}
180+
run: powershell -version 5.1 -command "./UseTargetFrameworks.ps1 wasm" -ErrorAction Stop
181+
179182
- name: Generate solution
180183
shell: pwsh
181184
working-directory: ./

0 commit comments

Comments
 (0)