File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 27
27
development-toolchain-tag : swift-DEVELOPMENT-SNAPSHOT-2024-07-08-a
28
28
wasi-swift-sdk-download : " https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-07-09-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-07-09-a-wasm32-unknown-wasi.artifactbundle.zip"
29
29
wasi-swift-sdk-id : DEVELOPMENT-SNAPSHOT-2024-07-09-a-wasm32-unknown-wasi
30
- test-args : " --sanitize address"
30
+ test-args : " --sanitize address --enable-code-coverage"
31
+ build-dev-dashboard : true
31
32
32
33
runs-on : ${{ matrix.os }}
33
34
name : " build-macos (${{ matrix.xcode }})"
60
61
- run : ./Vendor/checkout-dependency
61
62
- run : swift test ${{ matrix.test-args }}
62
63
64
+ - if : matrix.build-dev-dashboard
65
+ run : ./CI/build-dev-dashboard.sh
66
+ - if : matrix.build-dev-dashboard
67
+ id : deployment
68
+ uses : actions/upload-pages-artifact@v3
69
+ with :
70
+ path : .build/html
71
+
72
+ deploy-dev-dashboard :
73
+ environment :
74
+ name : github-pages
75
+ url : ${{ steps.deployment.outputs.page_url }}
76
+ runs-on : ubuntu-latest
77
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
78
+ needs : build-macos
79
+ steps :
80
+ - id : deployment
81
+ uses : actions/deploy-pages@v4
82
+
63
83
build-xcode :
64
84
runs-on : macos-15
65
85
steps :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ build_coverage_html () {
4
+ llvm-cov show --format=html .build/debug/WasmKitPackageTests.xctest/Contents/MacOS/WasmKitPackageTests --instr-profile .build/debug/codecov/default.profdata -o " $1 " --sources $( find Sources/ -type f)
5
+ }
6
+
7
+ mkdir -p ./.build/html
8
+ build_coverage_html ./.build/html/coverage
You can’t perform that action at this time.
0 commit comments