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 2727 development-toolchain-tag : swift-DEVELOPMENT-SNAPSHOT-2024-07-08-a
2828 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"
2929 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
3132
3233 runs-on : ${{ matrix.os }}
3334 name : " build-macos (${{ matrix.xcode }})"
6061 - run : ./Vendor/checkout-dependency
6162 - run : swift test ${{ matrix.test-args }}
6263
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+
6383 build-xcode :
6484 runs-on : macos-15
6585 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