]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[CI] Add cmake windows build 2900/head
authorNick Terrell <terrelln@fb.com>
Thu, 2 Dec 2021 22:42:17 +0000 (14:42 -0800)
committerNick Terrell <terrelln@fb.com>
Thu, 2 Dec 2021 23:23:33 +0000 (15:23 -0800)
Build on windows with cmake to ensure everything compiles.

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

index ae9d13c18ed8caf48d898f7a28ed881ad6f9bcad..69d56b485d7583ab438c7bb0c44597a3828e7652 100644 (file)
@@ -164,6 +164,28 @@ jobs:
           make clean
           CC=clang MOREFLAGS="-Werror -Wimplicit-fallthrough -O0" make -C lib -j libzstd.a ZSTD_LEGACY_SUPPORT=0
 
+  cmake-visual-2019:
+    runs-on: windows-latest
+    strategy:
+      matrix:
+        include:
+          - generator: "Visual Studio 16 2019"
+            flags: "-A x64"
+          - generator: "Visual Studio 16 2019"
+            flags: "-A Win32"
+          - generator: "MinGW Makefiles"
+    steps:
+    - uses: actions/checkout@v2
+    - name: Add MSBuild to PATH
+      uses: microsoft/setup-msbuild@v1.0.2
+    - name: Build
+      working-directory: ${{env.GITHUB_WORKSPACE}}
+      run: |
+        cd build\cmake
+        mkdir build
+        cd build
+        cmake.exe -G "${{matrix.generator}}" ${{matrix.flags}} ..
+        cmake.exe --build .
 
   visual-2019:
     runs-on: windows-latest