mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
vcpkg Caching
This commit is contained in:
15
.github/workflows/test-ci-windows.yml
vendored
15
.github/workflows/test-ci-windows.yml
vendored
@@ -11,6 +11,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
# For Caching
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -48,7 +53,17 @@ jobs:
|
|||||||
cp -v fuzzy.h "${MSYS2_WORKSPACE}/ssdeep-install/include/"
|
cp -v fuzzy.h "${MSYS2_WORKSPACE}/ssdeep-install/include/"
|
||||||
cp -v fuzzy.def "${MSYS2_WORKSPACE}/ssdeep-install/"
|
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
|
- name: Configure CMake for IIS Module
|
||||||
|
env:
|
||||||
|
VCPKG_FEATURE_FLAGS: "binarycaching"
|
||||||
|
VCPKG_BINARY_SOURCES: "clear;files,${{ steps.vcpkg-cache.outputs.path }},readwrite"
|
||||||
run: |
|
run: |
|
||||||
cmake `
|
cmake `
|
||||||
-DAPACHE_ROOT="C:\tools\Apache24" `
|
-DAPACHE_ROOT="C:\tools\Apache24" `
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.15)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
|
set(VCPKG_BUILD_TYPE release)
|
||||||
|
|
||||||
project(ModSecurityIIS C CXX)
|
project(ModSecurityIIS C CXX)
|
||||||
|
|
||||||
find_package(LibXml2 CONFIG REQUIRED)
|
find_package(LibXml2 CONFIG REQUIRED)
|
||||||
|
|||||||
Reference in New Issue
Block a user