Skip to content

Commit 0907ab5

Browse files
committed
Add GH Actions windows runtime test
1 parent 20660a0 commit 0907ab5

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

.github/workflows/dev-short-tests.yml

+25
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,31 @@ jobs:
332332
make clean
333333
make check
334334
335+
336+
visual-runtime-tests:
337+
runs-on: windows-latest
338+
strategy:
339+
matrix:
340+
platform: [x64, Win32]
341+
configuration: [Release]
342+
steps:
343+
- uses: actions/checkout@v2
344+
- name: Add MSBuild to PATH
345+
uses: microsoft/setup-msbuild@v1.0.2
346+
- name: Build and run tests
347+
working-directory: ${{env.GITHUB_WORKSPACE}}
348+
env:
349+
ZSTD_BIN: ./zstd.exe
350+
DATAGEN_BIN: ./datagen.exe
351+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
352+
run: |
353+
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v142 /t:Clean,Build /p:Platform=${{matrix.platform}} /p:Configuration=${{matrix.configuration}}
354+
COPY build\VS2010\bin\${{matrix.platform}}_${{matrix.configuration}}\*.exe tests\
355+
CD tests
356+
sh -e playTests.sh
357+
DIR
358+
.\fuzzer.exe -T2m
359+
335360
# This test currently fails on Github Actions specifically.
336361
# Possible reason : TTY emulation.
337362
# Note that the same test works fine locally and on travisCI.

appveyor.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,8 @@
190190
ECHO *** &&
191191
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
192192
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
193-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
194193
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
195-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
196-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
197-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe &&
198-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
194+
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe
199195
)
200196

201197

@@ -206,13 +202,4 @@
206202
set "CC=%COMPILER%" &&
207203
make clean &&
208204
make check
209-
)
210-
- if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
211-
CD tests &&
212-
SET ZSTD_BIN=./zstd.exe&&
213-
SET DATAGEN_BIN=./datagen.exe&&
214-
sh -e playTests.sh --test-large-data &&
215-
fullbench.exe -i1 &&
216-
fullbench.exe -i1 -P0 &&
217-
fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST%
218205
)

0 commit comments

Comments
 (0)