Skip to content

Commit 22bc5e3

Browse files
committed
CI: correct workflow definition
1 parent 6b545c0 commit 22bc5e3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: build
22

33
on:
44
pull_request:
5+
branches: [ 'main' ]
56
workflow_dispatch:
67

78
jobs:
89
windows:
10+
runs-on: windows-latest
11+
912
strategy:
1013
matrix:
1114
include:
@@ -42,8 +45,14 @@ jobs:
4245
4346
- uses: actions/checkout@v2
4447

48+
# - uses: seanmiddleditch/gha-setup-ninja@master
49+
- uses: seanmiddleditch/gha-setup-vsdevenv@master
50+
4551
- 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 }}
4756
4857
- name: build
49-
run: cmake --build out --configuration Release
58+
run: cmake --build out --config Release

0 commit comments

Comments
 (0)