Skip to content

Commit b00863f

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 b00863f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,26 @@ 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 build
261+
working-directory: ./platforms/CommunityToolkit.Labs.Wasm/
262+
run: dotnet 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+
264+
# TODO: Do we want to run tests here? Can we do that on linux easily?

0 commit comments

Comments
 (0)