diff --git a/.github/workflows/test-ci-windows.yml b/.github/workflows/test-ci-windows.yml index d86ecf86..f13f60f9 100644 --- a/.github/workflows/test-ci-windows.yml +++ b/.github/workflows/test-ci-windows.yml @@ -11,6 +11,11 @@ on: jobs: build: runs-on: windows-latest + + # For Caching + permissions: + actions: read + contents: read steps: - name: Checkout code @@ -48,7 +53,17 @@ jobs: cp -v fuzzy.h "${MSYS2_WORKSPACE}/ssdeep-install/include/" cp -v fuzzy.def "${MSYS2_WORKSPACE}/ssdeep-install/" + - name: Restore vcpkg cache + id: vcpkg-cache + uses: TAServers/vcpkg-cache@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + prefix: vcpkg-iis-module/ + - name: Configure CMake for IIS Module + env: + VCPKG_FEATURE_FLAGS: "binarycaching" + VCPKG_BINARY_SOURCES: "clear;files,${{ steps.vcpkg-cache.outputs.path }},readwrite" run: | cmake ` -DAPACHE_ROOT="C:\tools\Apache24" ` diff --git a/iis/CMakeLists.txt b/iis/CMakeLists.txt index a5c6d82b..428cc80c 100644 --- a/iis/CMakeLists.txt +++ b/iis/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required(VERSION 3.15) + +set(VCPKG_BUILD_TYPE release) + project(ModSecurityIIS C CXX) find_package(LibXml2 CONFIG REQUIRED)