Files
ModSecurity/.github/workflows/test-ci-windows.yml
A13501350 18095c0e0b test
2025-09-19 02:58:12 +08:00

47 lines
1.5 KiB
YAML

name: CI/CD for IIS Module
on:
push:
branches:
- v2/test-ci-windows
pull_request:
branches:
- v2/test-ci-windows
jobs:
check-apache-structure:
runs-on: windows-latest
steps:
- name: Check Apache24 directory structure
run: |
$apachePath = "C:\tools\Apache24"
if (Test-Path $apachePath) {
Write-Host "Apache24 directory exists at: $apachePath"
Write-Host "Subdirectories:"
Get-ChildItem -Path $apachePath -Directory | ForEach-Object {
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 {
Write-Host "Apache24 directory does not exist at: $apachePath"
}
shell: pwsh