Skip to content

Commit

Permalink
.github/workflows/windows.yml: Use Ninja generator.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1920682 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 15, 2024
1 parent 006149d commit 6f7e172
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
triplet: x64-windows
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: ON
packages: expat
Expand All @@ -27,8 +26,7 @@ jobs:
triplet: x86-windows
arch: x86
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: ON
packages: expat
Expand All @@ -37,8 +35,7 @@ jobs:
triplet: x64-windows
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: ON
packages: libxml2
Expand All @@ -51,8 +48,7 @@ jobs:
triplet: x64-windows
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: ON
packages: libxml2
Expand All @@ -65,8 +61,7 @@ jobs:
triplet: x64-windows
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: OFF
packages: expat
Expand All @@ -75,8 +70,7 @@ jobs:
triplet: x64-windows
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: OFF
packages: expat
Expand All @@ -89,8 +83,7 @@ jobs:
triplet: x64-windows
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: ON
dso-build: OFF
packages: expat sqlite3 openssl libiconv
Expand All @@ -104,8 +97,7 @@ jobs:
triplet: x64-windows-static
arch: x64
build-type: Debug
generator: "Visual Studio 17 2022"
toolset: "v143"
generator: Ninja
build-shared: OFF
dso-build: OFF
packages: expat
Expand All @@ -126,22 +118,26 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >-
cmake -B ${{github.workspace}}/build
-G "${{ matrix.generator }}"
-A ${{ matrix.arch }}
-T ${{ matrix.toolset }}
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
-DBUILD_SHARED_LIBS=${{ matrix.build-shared }}
-DAPR_MODULAR_DSO=${{ matrix.dso-build }}
-DAPR_BUILD_TESTAPR=ON
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
cmake -B ${{github.workspace}}/build ^
-G "${{ matrix.generator }}" ^
-A ${{ matrix.arch }} ^
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ^
-DBUILD_SHARED_LIBS=${{ matrix.build-shared }} ^
-DAPR_MODULAR_DSO=${{ matrix.dso-build }} ^
-DAPR_BUILD_TESTAPR=ON ^
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ^
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} ^
${{ matrix.config }}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}
- name: Test
working-directory: ${{github.workspace}}/build
Expand Down

0 comments on commit 6f7e172

Please sign in to comment.