Skip to content

Commit

Permalink
.github/workflows/windows.yml: Add minimal and full build configuration.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x@1920640 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 14, 2024
1 parent d6afa14 commit e3a4e86
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
generator: Ninja
build-shared: ON
dso-build: ON
packages: expat
- name: Shared (no DSO)
os: windows-latest
triplet: x64-windows
Expand All @@ -28,6 +29,33 @@ jobs:
generator: Ninja
build-shared: ON
dso-build: OFF
packages: expat
- name: Minimal
os: windows-latest
triplet: x64-windows
arch: x64
build-type: Debug
generator: Ninja
build-shared: ON
dso-build: OFF
packages: expat
config: >-
-DAPU_HAVE_ODBC=OFF
-DAPU_HAVE_SQLITE3=OFF
-DAPU_HAVE_CRYPTO=OFF
- name: ODBC + SQLITE3 + CRYPTO
os: windows-latest
triplet: x64-windows
arch: x64
build-type: Debug
generator: Ninja
build-shared: ON
dso-build: OFF
packages: expat sqlite3 openssl
config: >-
-DAPU_HAVE_ODBC=ON
-DAPU_HAVE_SQLITE3=ON
-DAPU_HAVE_CRYPTO=ON
- name: Static
os: windows-latest
triplet: x64-windows
Expand All @@ -36,6 +64,7 @@ jobs:
generator: Ninja
build-shared: OFF
dso-build: OFF
packages: expat
fail-fast: false

name: "MSVC ${{ matrix.arch }} [${{ matrix.build-type }}] build-shared=${{ matrix.build-shared }} on ${{ matrix.os }}"
Expand All @@ -56,7 +85,7 @@ jobs:
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install dependencies
run: vcpkg install --triplet ${{ matrix.triplet }} expat
run: vcpkg install --triplet ${{ matrix.triplet }} ${{ matrix.packages }}

- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -104,7 +133,8 @@ jobs:
-DAPR_BUILD_TESTAPR=ON ^
-DAPR_HAS_LDAP=OFF ^
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ^
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install ^
${{ matrix.config }}
- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit e3a4e86

Please sign in to comment.