Skip to content

Commit 20d04e5

Browse files
committed
WIP fix: add SkiaSharp.NativeAssets.WebAssembly and improve CI workflow
1 parent fe1a540 commit 20d04e5

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,24 @@ jobs:
2525
with:
2626
dotnet-version: '9.x'
2727

28-
#- name: Restore dependencies
29-
# run: dotnet restore
30-
31-
#- name: Restore .NET workloads
32-
# run: dotnet workload restore
33-
3428
- name: Remove global.json to allow .NET 9
35-
run: rm global.json
29+
run: rm -f global.json
3630

3731
- name: Install WebAssembly workload
3832
run: dotnet workload install wasm-tools
39-
40-
- name: Check installed workloads (debug)
41-
run: dotnet workload list
33+
34+
- name: Restore dependencies
35+
run: dotnet restore Samples/BlazorWebAssembly/Blazor-Wasm-Captcha-Test/Blazor-Wasm-Captcha-Test.csproj
4236

4337
- name: Dotnet Publish
44-
run: dotnet publish Samples/BlazorWebAssembly/Blazor-Wasm-Captcha-Test/Blazor-Wasm-Captcha-Test.csproj --configuration Release -f net9.0
38+
run: dotnet publish Samples/BlazorWebAssembly/Blazor-Wasm-Captcha-Test/Blazor-Wasm-Captcha-Test.csproj --configuration Release -f net9.0 --no-restore
4539

46-
- name: Debug publish output
40+
- name: Verify SkiaSharp WASM files
4741
run: |
48-
echo "Listing output:"
49-
ls -R Samples/BlazorWebAssembly/Blazor-Wasm-Captcha-Test/bin/Release/net9.0/publish/
42+
echo "=== Checking for SkiaSharp WASM files ==="
43+
find Samples/BlazorWebAssembly/Blazor-Wasm-Captcha-Test/bin/Release/net9.0/publish -name "*skia*" -o -name "*Skia*" | head -20
44+
echo "=== Checking _framework folder ==="
45+
ls -la Samples/BlazorWebAssembly/Blazor-Wasm-Captcha-Test/bin/Release/net9.0/publish/wwwroot/_framework/ | head -30
5046
5147
- name: Change base-tag in index.html to repo name
5248
run: sed -i 's/<base href="\/" \/>/<base href="\/${{ env.REPO_NAME }}\/" \/>/g' $GITHUB_WORKSPACE/$PUBLISH_FOLDER/index.html

0 commit comments

Comments
 (0)