Skip to content

Commit 4975e99

Browse files
Add a WASM on Linux CI Build Job
This runs the same command as launch.json for Codespaces in VS Code to build all samples. This also runs the job on linux compared to our other jobs that run on Windows.
1 parent bb419fe commit 4975e99

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,25 @@ jobs:
239239
name: Test results
240240
path: './TestResults/*.trx'
241241
reporter: dotnet-trx
242+
243+
wasm-linux:
244+
runs-on: ubuntu-latest
245+
246+
steps:
247+
- name: Install .NET 6 SDK
248+
uses: actions/setup-dotnet@v1
249+
with:
250+
dotnet-version: '6.0.201'
251+
252+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
253+
- name: Checkout Repository
254+
uses: actions/checkout@v2
255+
256+
- name: Generate solution
257+
shell: pwsh
258+
run: ./GenerateAllSolution.ps1
259+
260+
- name: dotnet run build
261+
working-directory: ./platforms/CommunityToolkit.Labs.Wasm/
262+
run: dotnet run build /r /bl /p:UnoSourceGeneratorUseGenerationHost=true /p:UnoSourceGeneratorUseGenerationController=false /p:UnoRemoteControlPort=443 --project=CommunityToolkit.Labs.Wasm.csproj -p:TargetFrameworks=netstandard2.0 -p:TargetFramework=net5.0
263+

0 commit comments

Comments
 (0)