summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2024-07-20 15:04:40 +0200
committerIvan Zhakov <ivan@apache.org>2024-07-20 15:04:40 +0200
commit1d4b356d3726d41d3a4ccf7f2beb55c2e8608874 (patch)
treee0c2e938101169c8beafc54e8b4812e8bf8d08b0 /.github
parent* CMakeLists.txt: By default use PCRE2 CMake package if supported. (diff)
downloadapache2-1d4b356d3726d41d3a4ccf7f2beb55c2e8608874.tar.xz
apache2-1d4b356d3726d41d3a4ccf7f2beb55c2e8608874.zip
CI: Add Windows GitHub Action job. Not really tested.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919397 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000000..4dbbd496d2
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,54 @@
+name: Windows
+
+on:
+ push:
+ branches: [ "trunk" ]
+ paths-ignore:
+ - 'docs/**'
+ - STATUS
+ - CHANGES
+ - changes-entries/*
+ pull_request:
+ branches: [ "trunk" ]
+ paths-ignore:
+ - 'docs/**'
+ - STATUS
+ - CHANGES
+ - changes-entries/*
+
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - name: Default
+ triplet: x64-windows
+ build-type: Debug
+ generator: "Visual Studio 17 2022"
+
+ runs-on: windows-latest
+ timeout-minutes: 30
+ name: ${{ matrix.name }}
+ steps:
+ - name: Export GitHub Actions cache environment variables
+ uses: actions/github-script@v7
+ with:
+ script: |
+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
+
+ - name: Install dependencies
+ run: vcpkg install --triplet ${{ matrix.triplet }} apr apr-util pcre2
+
+ - uses: actions/checkout@v3
+
+ - name: Configure CMake
+ run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
+ -G "${{ matrix.generator }}"
+ -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
+ -DAPR_INCLUDE_DIR=C:/vcpkg/installed/${{ matrix.triplet }}/include
+ -DAPR_LIBRARIES=C:/vcpkg/installed/${{ matrix.triplet }}/lib/libapr-1.lib;C:/vcpkg/installed/${{ matrix.triplet }}/lib/libaprutil-1.lib
+
+ - name: Build
+ run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}