File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : coverage
2
2
3
3
on :
4
- # push:
5
- # branches:
6
- # - main
7
- # paths:
8
- # - '**/*.swift'
9
- # - '!Examples/**/*.swift'
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - ' **/*.swift'
9
+ - ' !Examples/**/*.swift'
10
10
workflow_dispatch :
11
11
12
12
jobs :
@@ -47,20 +47,21 @@ jobs:
47
47
New-Item -Path C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\clang\12.0.0\lib\x86_64-unknown-windows-msvc -ItemType Directory
48
48
Invoke-WebRequest -Uri "https://artprodeus21.artifacts.visualstudio.com/A8fd008a0-56bc-482c-ba46-67f9425510be/3133d6ab-80a8-4996-ac4f-03df25cd3224/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2NvbXBuZXJkL3Byb2plY3RJZC8zMTMzZDZhYi04MGE4LTQ5OTYtYWM0Zi0wM2RmMjVjZDMyMjQvYnVpbGRJZC81MTM4NS9hcnRpZmFjdE5hbWUvdG9vbGNoYWluLXdpbmRvd3MteDY00/content?format=file&subPath=%2FLibrary%2FDeveloper%2FToolchains%2Funknown-Asserts-development.xctoolchain%2Fusr%2Flib%2Fclang%2F12.0.0%2Flib%2Fx86_64-unknown-windows-msvc%2Fclang_rt.profile.lib" -OutFile C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\clang\12.0.0\lib\x86_64-unknown-windows-msvc\clang_rt.profile.lib
49
49
# Workaround for the toolchain issue
50
- New-Item -Path C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\clang\lib\windows
50
+ New-Item -Path C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\clang\lib -ItemType Directory
51
+ New-Item -Path C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\clang\lib\windows -ItemType Directory
51
52
Invoke-WebRequest -Uri "https://artprodeus21.artifacts.visualstudio.com/A8fd008a0-56bc-482c-ba46-67f9425510be/3133d6ab-80a8-4996-ac4f-03df25cd3224/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2NvbXBuZXJkL3Byb2plY3RJZC8zMTMzZDZhYi04MGE4LTQ5OTYtYWM0Zi0wM2RmMjVjZDMyMjQvYnVpbGRJZC81MTM4NS9hcnRpZmFjdE5hbWUvdG9vbGNoYWluLXdpbmRvd3MteDY00/content?format=file&subPath=%2FLibrary%2FDeveloper%2FToolchains%2Funknown-Asserts-development.xctoolchain%2Fusr%2Flib%2Fclang%2F12.0.0%2Flib%2Fx86_64-unknown-windows-msvc%2Fclang_rt.profile.lib" -OutFile C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\clang\lib\windows\clang_rt.profile-x86_64.lib
52
53
53
54
- name : Build
54
55
run : swift build -v
55
56
56
57
- name : Run tests
57
- run : swift test -v -Xswiftc -DENABLE_TESTING -enable-code-coverage
58
+ run : swift test -v -Xswiftc -DENABLE_TESTING -- enable-code-coverage
58
59
59
60
- name : Process Coverage
60
61
run : |
61
- llvm-cov export -format lcov -ignore-filename-regex ".build|Tests|Examples" -instr-profile .build\x86_64-unknown-windows-msvc\debug\codecov\default.profdata .build\x86_64-unknown-windows-msvc\debug\SwiftWin32PackageTests.xctest > $env:Temp\ coverage.lcov
62
+ llvm-cov export -format lcov -ignore-filename-regex ".build|Tests|Examples" -instr-profile .build\x86_64-unknown-windows-msvc\debug\codecov\default.profdata .build\x86_64-unknown-windows-msvc\debug\SwiftWin32PackageTests.xctest > coverage.lcov
62
63
63
64
64
65
with :
65
66
token : ${{ secrets.CODECOV_TOKEN }}
66
- files : $env:Temp\ coverage.lcov
67
+ files : coverage.lcov
You can’t perform that action at this time.
0 commit comments