mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 09:02:15 +03:00
again!
This commit is contained in:
45
.github/workflows/test-ci-windows.yml
vendored
45
.github/workflows/test-ci-windows.yml
vendored
@@ -33,34 +33,37 @@ jobs:
|
||||
- name: Clone and build ssdeep
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
MSYS2_WORKSPACE=$(cygpath -u '${{ github.workspace }}')
|
||||
echo "Converted workspace path: $MSYS2_WORKSPACE"
|
||||
|
||||
git clone https://github.com/ssdeep-project/ssdeep.git --depth 1
|
||||
cd ssdeep
|
||||
autoreconf -i
|
||||
./configure --enable-shared --disable-static CFLAGS="-O3" CXXFLAGS="-O3"
|
||||
make dll
|
||||
mkdir -p ${{ github.workspace }}/ssdeep-install/bin
|
||||
mkdir -p ${{ github.workspace }}/ssdeep-install/include
|
||||
cp -v fuzzy.dll ${{ github.workspace }}/ssdeep-install/bin/
|
||||
cp -v fuzzy.h ${{ github.workspace }}/ssdeep-install/include/
|
||||
cp -v fuzzy.def ${{ github.workspace }}/ssdeep-install/
|
||||
|
||||
# - name: Configure CMake for IIS Module
|
||||
# run: |
|
||||
# Test-Path "${{ github.workspace }}\ssdeep-install\bin\fuzzy.dll"
|
||||
# cmake `
|
||||
# -DAPACHE_ROOT="C:\tools\Apache24" `
|
||||
# -DSSDEEP_ROOT="${{ github.workspace }}\ssdeep-install" `
|
||||
# -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\install" `
|
||||
# -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" `
|
||||
# -DWITH_SSDEEP=ON `
|
||||
# -DWITH_LUA=ON `
|
||||
# -DWITH_YAJL=ON `
|
||||
# -S IIS -B iis\build
|
||||
mkdir -p "${MSYS2_WORKSPACE}/ssdeep-install/bin
|
||||
mkdir -p "${MSYS2_WORKSPACE}/ssdeep-install/include
|
||||
cp -v fuzzy.dll "${MSYS2_WORKSPACE}/ssdeep-install/bin/
|
||||
cp -v fuzzy.h "${MSYS2_WORKSPACE}/ssdeep-install/include/
|
||||
cp -v fuzzy.def "${MSYS2_WORKSPACE}/ssdeep-install/
|
||||
|
||||
# - name: Build IIS Module
|
||||
# shell: pwsh
|
||||
# run: |
|
||||
# cmake --build iis\build --config Release
|
||||
- name: Configure CMake for IIS Module
|
||||
run: |
|
||||
cmake `
|
||||
-DAPACHE_ROOT="C:\tools\Apache24" `
|
||||
-DSSDEEP_ROOT="${{ github.workspace }}\ssdeep-install" `
|
||||
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\install" `
|
||||
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" `
|
||||
-DWITH_SSDEEP=ON `
|
||||
-DWITH_LUA=ON `
|
||||
-DWITH_YAJL=ON `
|
||||
-S IIS -B iis\build
|
||||
|
||||
- name: Build IIS Module
|
||||
shell: pwsh
|
||||
run: |
|
||||
cmake --build iis\build --config Release
|
||||
|
||||
# - name: Package IIS Module with WiX
|
||||
# shell: pwsh
|
||||
|
||||
Reference in New Issue
Block a user