Author: ivan
Date: Thu Apr 20 11:10:21 2023
New Revision: 1909281

URL: http://svn.apache.org/viewvc?rev=1909281&view=rev
Log:
* .github/workflows/windows-cmake.yml: Experimental GitHub Actions to build
   Windows using CMake.

Added:
    serf/trunk/.github/workflows/windows-cmake.yml

Added: serf/trunk/.github/workflows/windows-cmake.yml
URL: 
http://svn.apache.org/viewvc/serf/trunk/.github/workflows/windows-cmake.yml?rev=1909281&view=auto
==============================================================================
--- serf/trunk/.github/workflows/windows-cmake.yml (added)
+++ serf/trunk/.github/workflows/windows-cmake.yml Thu Apr 20 11:10:21 2023
@@ -0,0 +1,47 @@
+name: Windows (CMake)
+
+on:
+  push:
+    branches: [ "*" ]
+  pull_request:
+    branches: [ "trunk" ]
+
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [windows-latest]
+        build-type: [Debug, Release]
+        generator: [ "Ninja" ]
+        arch: [ "Win32", "x64" ]
+      fail-fast: false
+
+    runs-on: ${{ matrix.os }}
+    steps:
+      - name: Get apr
+        run: vcpkg install apr
+
+      - name: Get apr-util
+        run: vcpkg install apr-util
+
+      - uses: actions/checkout@v3
+
+      - name: Configure CMake
+        run: cmake \
+            -B ${{github.workspace}}/build \
+            -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
+            -G "${{ matrix.generator }}" \
+            -A ${{ matrix.arch }} \
+            -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
+
+      - name: Build
+        run: cmake --build ${{github.workspace}}/build --config ${{ 
matrix.build-type }}
+
+      - name: Test
+        working-directory: ${{github.workspace}}/build
+        # Execute tests defined by the CMake configuration.
+        # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more 
detail
+        run: ctest -C ${{ matrix.build-type }} --output-on-failure


Reply via email to