@@ -69,10 +69,10 @@ jobs:
69
69
with :
70
70
name : macos-binaries
71
71
path : build/bin
72
- windows_VS2019 :
73
- name : " windows-2019 "
74
- runs-on : windows-2019
75
- timeout-minutes : 180
72
+ windows_VS2022 :
73
+ name : " windows-2022 "
74
+ runs-on : windows-2022
75
+ timeout-minutes : 240
76
76
steps :
77
77
- name : Support longpaths
78
78
run : git config --system core.longpaths true
@@ -82,11 +82,11 @@ jobs:
82
82
uses : actions/cache/restore@v3
83
83
with :
84
84
path : ~/AppData/Local/Mozilla/sccache/cache
85
- key : ${{ runner.os }}-sccache-${{ github.ref }}-${{ github.sha }}
85
+ key : ${{ runner.os }}-2022- sccache-${{ github.ref }}-${{ github.sha }}
86
86
restore-keys : |
87
- ${{ runner.os }}-sccache-${{ github.ref }}
88
- ${{ runner.os }}-sccache-refs/heads/main
89
- ${{ runner.os }}-sccache
87
+ ${{ runner.os }}-2022- sccache-${{ github.ref }}
88
+ ${{ runner.os }}-2022- sccache-refs/heads/main
89
+ ${{ runner.os }}-2022- sccache
90
90
- name : Run sccache-cache
91
91
uses :
mozilla-actions/[email protected]
92
92
- name : Install ninja-build tool
@@ -116,13 +116,64 @@ jobs:
116
116
if : always()
117
117
with :
118
118
path : ~/AppData/Local/Mozilla/sccache/cache
119
- key : ${{ runner.os }}-sccache-${{ github.ref }}-${{ github.sha }}
119
+ key : ${{ runner.os }}-2022- sccache-${{ github.ref }}-${{ github.sha }}
120
120
- name : test
121
121
run : cd ..\b && ctest --timeout 300 --parallel %NUMBER_OF_PROCESSORS% -C Release --output-on-failure
122
122
shell : cmd
123
123
- name : linter
124
124
run : cd ..\b && cmake --build . --target linter --config Release -j 8
125
125
shell : cmd
126
+ windows_VS2019 :
127
+ name : " windows-2019"
128
+ runs-on : windows-2019
129
+ timeout-minutes : 240
130
+ steps :
131
+ - name : Support longpaths
132
+ run : git config --system core.longpaths true
133
+ - id : checkout
134
+ uses : actions/checkout@v3
135
+ - name : sccache cache restore
136
+ uses : actions/cache/restore@v3
137
+ with :
138
+ path : ~/AppData/Local/Mozilla/sccache/cache
139
+ key : ${{ runner.os }}-2019-sccache-${{ github.ref }}-${{ github.sha }}
140
+ restore-keys : |
141
+ ${{ runner.os }}-2019-sccache-${{ github.ref }}
142
+ ${{ runner.os }}-2019-sccache-refs/heads/main
143
+ ${{ runner.os }}-2019-sccache
144
+ - name : Run sccache-cache
145
+ uses :
mozilla-actions/[email protected]
146
+ - name : Install ninja-build tool
147
+ uses : seanmiddleditch/gha-setup-ninja@v3
148
+ - name : Set up Python
149
+ uses : actions/setup-python@v4
150
+ with :
151
+ python-version : ' 3.11'
152
+ - name : Set up Lua
153
+
154
+ - name : Set up NASM for OpenSSL
155
+ uses : ilammy/setup-nasm@v1
156
+ - id : install-sqliteodbc-driver
157
+ run : |
158
+ Invoke-WebRequest -Uri "http://www.ch-werner.de/sqliteodbc/sqliteodbc_w64.exe" -OutFile "sqliteodbc_w64.exe"
159
+ if ((Get-FileHash 'sqliteodbc_w64.exe').Hash -ne "0df79be4a4412542839ebf405b20d95a7dfc803da0b0b6b0dc653d30dc82ee84") {Write "Hash mismatch"; Exit 1}
160
+ ./sqliteodbc_w64.exe /S
161
+ shell : powershell
162
+ - name : build
163
+ run : |
164
+ for /f "usebackq delims=" %%i in (`vswhere.exe -latest -property installationPath`) do if exist "%%i\Common7\Tools\vsdevcmd.bat" call "%%i\Common7\Tools\vsdevcmd.bat" -arch=x64 -host_arch=x64
165
+ win_build_vs.bat ..\b /64 /CI /S /A /PDH /SPLUNK /GCP /ELASTIC /K /L /R /Z /N /RO /PR /PYTHON_SCRIPTING /LUA_SCRIPTING /MQTT /SCCACHE /NINJA
166
+ sccache --show-stats
167
+ shell : cmd
168
+ - name : sccache cache save
169
+ uses : actions/cache/save@v3
170
+ if : always()
171
+ with :
172
+ path : ~/AppData/Local/Mozilla/sccache/cache
173
+ key : ${{ runner.os }}-2019-sccache-${{ github.ref }}-${{ github.sha }}
174
+ - name : test
175
+ run : cd ..\b && ctest --timeout 300 --parallel %NUMBER_OF_PROCESSORS% -C Release --output-on-failure
176
+ shell : cmd
126
177
ubuntu_20_04 :
127
178
name : " ubuntu-20.04"
128
179
runs-on : ubuntu-20.04
0 commit comments