Skip to content

Commit 9ee0ee0

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 9ee0ee0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,28 @@ 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+
# Issue with Comment Links currently, see: https://github.com/mrlacey/CommentLinks/issues/38
261+
# See launch.json configuration file for analogous command we're emulating here to build LINK: ../../.vscode/launch.json:CommunityToolkit.Labs.Wasm.csproj
262+
- name: dotnet build
263+
working-directory: ./platforms/CommunityToolkit.Labs.Wasm/
264+
run: dotnet build /r /bl /p:UnoSourceGeneratorUseGenerationHost=true /p:UnoSourceGeneratorUseGenerationController=false -p:TargetFrameworks=netstandard2.0 -p:TargetFramework=net5.0
265+
266+
# TODO: Do we want to run tests here? Can we do that on linux easily?

0 commit comments

Comments
 (0)