mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +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
|
- name: Clone and build ssdeep
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
|
MSYS2_WORKSPACE=$(cygpath -u '${{ github.workspace }}')
|
||||||
|
echo "Converted workspace path: $MSYS2_WORKSPACE"
|
||||||
|
|
||||||
git clone https://github.com/ssdeep-project/ssdeep.git --depth 1
|
git clone https://github.com/ssdeep-project/ssdeep.git --depth 1
|
||||||
cd ssdeep
|
cd ssdeep
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
./configure --enable-shared --disable-static CFLAGS="-O3" CXXFLAGS="-O3"
|
./configure --enable-shared --disable-static CFLAGS="-O3" CXXFLAGS="-O3"
|
||||||
make dll
|
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
|
mkdir -p "${MSYS2_WORKSPACE}/ssdeep-install/bin
|
||||||
# run: |
|
mkdir -p "${MSYS2_WORKSPACE}/ssdeep-install/include
|
||||||
# Test-Path "${{ github.workspace }}\ssdeep-install\bin\fuzzy.dll"
|
cp -v fuzzy.dll "${MSYS2_WORKSPACE}/ssdeep-install/bin/
|
||||||
# cmake `
|
cp -v fuzzy.h "${MSYS2_WORKSPACE}/ssdeep-install/include/
|
||||||
# -DAPACHE_ROOT="C:\tools\Apache24" `
|
cp -v fuzzy.def "${MSYS2_WORKSPACE}/ssdeep-install/
|
||||||
# -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
|
- name: Configure CMake for IIS Module
|
||||||
# shell: pwsh
|
run: |
|
||||||
# run: |
|
cmake `
|
||||||
# cmake --build iis\build --config Release
|
-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
|
# - name: Package IIS Module with WiX
|
||||||
# shell: pwsh
|
# shell: pwsh
|
||||||
|
|||||||
Reference in New Issue
Block a user