mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
test again
This commit is contained in:
76
.github/workflows/test-ci-windows.yml
vendored
76
.github/workflows/test-ci-windows.yml
vendored
@@ -9,38 +9,72 @@ on:
|
|||||||
- v2/test-ci-windows
|
- v2/test-ci-windows
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-apache-structure:
|
inspect-apache:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check Apache24 bin directory
|
||||||
|
run: |
|
||||||
|
$binPath = "C:\tools\Apache24\bin"
|
||||||
|
Write-Host "=== Apache24 bin Directory Contents ==="
|
||||||
|
if (Test-Path $binPath) {
|
||||||
|
Write-Host "Directory exists at: $binPath"
|
||||||
|
Write-Host "Files and subdirectories:"
|
||||||
|
Get-ChildItem -Path $binPath -Recurse | ForEach-Object {
|
||||||
|
if ($_.PSIsContainer) {
|
||||||
|
Write-Host " [DIR] $($_.FullName)"
|
||||||
|
} else {
|
||||||
|
Write-Host " [FILE] $($_.FullName) ($($_.Length) bytes)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Write-Host "Bin directory does not exist at: $binPath"
|
||||||
|
}
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
|
- name: Check Apache24 include directory
|
||||||
|
run: |
|
||||||
|
$includePath = "C:\tools\Apache24\include"
|
||||||
|
Write-Host "=== Apache24 include Directory Contents ==="
|
||||||
|
if (Test-Path $includePath) {
|
||||||
|
Write-Host "Directory exists at: $includePath"
|
||||||
|
Write-Host "Files and subdirectories:"
|
||||||
|
Get-ChildItem -Path $includePath -Recurse | ForEach-Object {
|
||||||
|
if ($_.PSIsContainer) {
|
||||||
|
Write-Host " [DIR] $($_.FullName)"
|
||||||
|
} else {
|
||||||
|
Write-Host " [FILE] $($_.FullName) ($($_.Length) bytes)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# 特别检查 APR 头文件
|
||||||
|
Write-Host "`n=== APR Header Files ==="
|
||||||
|
Get-ChildItem -Path $includePath -Filter "apr*.h" -Recurse | ForEach-Object {
|
||||||
|
Write-Host " $($_.FullName)"
|
||||||
|
}
|
||||||
|
|
||||||
|
# 检查是否存在 apr_perms_set.h
|
||||||
|
$permsSetPath = Join-Path $includePath "apr_perms_set.h"
|
||||||
|
if (Test-Path $permsSetPath) {
|
||||||
|
Write-Host "`nFOUND: apr_perms_set.h exists at $permsSetPath"
|
||||||
|
} else {
|
||||||
|
Write-Host "`nMISSING: apr_perms_set.h not found in $includePath"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Write-Host "Include directory does not exist at: $includePath"
|
||||||
|
}
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Check Apache24 directory structure
|
- name: Check Apache24 directory structure
|
||||||
run: |
|
run: |
|
||||||
$apachePath = "C:\tools\Apache24"
|
$apachePath = "C:\tools\Apache24"
|
||||||
|
Write-Host "=== Apache24 Overall Structure ==="
|
||||||
if (Test-Path $apachePath) {
|
if (Test-Path $apachePath) {
|
||||||
Write-Host "Apache24 directory exists at: $apachePath"
|
Write-Host "Apache24 directory exists at: $apachePath"
|
||||||
Write-Host "Subdirectories:"
|
Write-Host "Top-level directories:"
|
||||||
Get-ChildItem -Path $apachePath -Directory | ForEach-Object {
|
Get-ChildItem -Path $apachePath -Directory | ForEach-Object {
|
||||||
Write-Host " - $($_.Name)"
|
Write-Host " - $($_.Name)"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "`nChecking for APR headers in include directory:"
|
|
||||||
$includePath = Join-Path $apachePath "include"
|
|
||||||
if (Test-Path $includePath) {
|
|
||||||
Get-ChildItem -Path $includePath -Filter "apr*.h" | Select-Object -First 10 | ForEach-Object {
|
|
||||||
Write-Host " - $($_.Name)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# 特别检查 apr_perms_set.h
|
|
||||||
$permsSetPath = Join-Path $includePath "apr_perms_set.h"
|
|
||||||
if (Test-Path $permsSetPath) {
|
|
||||||
Write-Host "`nFOUND: apr_perms_set.h exists at $permsSetPath"
|
|
||||||
} else {
|
|
||||||
Write-Host "`nMISSING: apr_perms_set.h not found in $includePath"
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Write-Host " Include directory not found at $includePath"
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Apache24 directory does not exist at: $apachePath"
|
Write-Host "Apache24 directory does not exist at: $apachePath"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user