]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ci : Add Windows (#1249)
authorDaniel Tang <redacted>
Thu, 29 May 2025 11:13:35 +0000 (07:13 -0400)
committerGitHub <redacted>
Thu, 29 May 2025 11:13:35 +0000 (14:13 +0300)
.github/workflows/ci.yml

index 4dcc53b950ac0620e611271b957f40225e2c4633..b1e80df79742d51345e4208d59a1e27f3ab6a4d9 100644 (file)
@@ -74,3 +74,26 @@ jobs:
     - name: Test
       working-directory: ./build
       run: ctest --verbose --timeout 900
+
+  windows:
+    if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
+            github.event.inputs.run_type == 'full-ci' }}
+    runs-on: windows-latest
+
+    steps:
+      - name: Clone
+        uses: actions/checkout@v4
+
+      - name: Add msbuild to PATH
+        uses: microsoft/setup-msbuild@v2
+
+      - name: Configure
+        run: >
+          cmake -S . -B ./build -A x64
+          -DCMAKE_BUILD_TYPE=Release
+          -DBUILD_SHARED_LIBS=ON
+
+      - name: Build
+        run: |
+          cd ./build
+          msbuild ALL_BUILD.vcxproj -t:build -p:configuration=Release -p:platform=x64