File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ name: build
2
2
3
3
on :
4
4
pull_request :
5
+ branches : [ 'main' ]
5
6
workflow_dispatch :
6
7
7
8
jobs :
8
9
windows :
10
+ runs-on : windows-latest
11
+
9
12
strategy :
10
13
matrix :
11
14
include :
42
45
43
46
- uses : actions/checkout@v2
44
47
48
+ # - uses: seanmiddleditch/gha-setup-ninja@master
49
+ - uses : seanmiddleditch/gha-setup-vsdevenv@master
50
+
45
51
- name : configure
46
- run : cmake -B out -D CMAKE_BUILD_TYPE=Release -G Ninja -S ${{ github.workspace }}
52
+ run : |
53
+ # workaround CMake 3.20.0 bug
54
+ $SDK_ROOT = cygpath -m $env:SDKROOT
55
+ cmake -B out -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=clang-cl -D CMAKE_CXX_COMPILER=clang-cl -D CMAKE_MT=mt -D CMAKE_Swift_FLAGS="-sdk $SDK_ROOT" -G Ninja -S ${{ github.workspace }}
47
56
48
57
- name : build
49
- run : cmake --build out --configuration Release
58
+ run : cmake --build out --config Release
You can’t perform that action at this time.
0 commit comments