Files
ModSecurity/.github/workflows/test-ci-windows.yml
2025-09-19 03:02:34 +08:00

81 lines
2.7 KiB
YAML

name: CI/CD for IIS Module
on:
push:
branches:
- v2/test-ci-windows
pull_request:
branches:
- v2/test-ci-windows
jobs:
inspect-apache:
runs-on: windows-latest
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
run: |
$apachePath = "C:\tools\Apache24"
Write-Host "=== Apache24 Overall Structure ==="
if (Test-Path $apachePath) {
Write-Host "Apache24 directory exists at: $apachePath"
Write-Host "Top-level directories:"
Get-ChildItem -Path $apachePath -Directory | ForEach-Object {
Write-Host " - $($_.Name)"
}
} else {
Write-Host "Apache24 directory does not exist at: $apachePath"
}
shell: pwsh