Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/call-windows-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:

jobs:
call-build-windows-unit-test:
runs-on: windows-latest
runs-on: ${{ matrix.config.os }}
environment: ${{ inputs.environment }}
strategy:
fail-fast: false
Expand All @@ -39,11 +39,19 @@ jobs:
cmake_additional_opt: ""
vcpkg_triplet: x86-windows-static
cmake_version: "3.31.6"
os: windows-latest
- name: "Windows 64bit"
arch: x64
cmake_additional_opt: ""
vcpkg_triplet: x64-windows-static
cmake_version: "3.31.6"
os: windows-latest
- name: "Windows 64bit (Arm64)"
arch: amd64_arm64
cmake_additional_opt: "-DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_VERSION=10.0 -DCMAKE_SYSTEM_PROCESSOR=ARM64"
vcpkg_triplet: arm64-windows-static
cmake_version: "3.31.6"
os: windows-11-arm
permissions:
contents: read
# Default environment variables can be overridden below. To prevent library pollution - without this other random libraries may be found on the path leading to failures.
Expand All @@ -62,7 +70,7 @@ jobs:
Copy-Item -Path C:\WinFlexBison/win_bison.exe C:\WinFlexBison/bison.exe
Copy-Item -Path C:\WinFlexBison/win_flex.exe C:\WinFlexBison/flex.exe
echo "C:\WinFlexBison" | Out-File -FilePath $env:GITHUB_PATH -Append
choco install cmake --version "${{ matrix.config.cmake_version }}" --force
choco install cmake.portable --version "${{ matrix.config.cmake_version }}" --force
env:
WINFLEXBISON: https://github.com/lexxmark/winflexbison/releases/download/v2.5.22/win_flex_bison-2.5.22.zip
shell: pwsh
Expand Down Expand Up @@ -119,7 +127,7 @@ jobs:
key: ${{ steps.cache-unit-test-vcpkg-sources.outputs.cache-primary-key }}
enableCrossOsArchive: false

- name: Build unit-test for Fluent Bit packages (only for x86 and x64)
- name: Build unit-test for Fluent Bit packages (x86, x64, and ARM64)
run: |
cmake -G "NMake Makefiles" `
-D FLB_TESTS_INTERNAL=On `
Expand Down Expand Up @@ -162,7 +170,7 @@ jobs:
dumpbin /dependents .\bin\fluent-bit.exe
working-directory: build

- name: Build unit-test for Fluent Bit packages (only for x86 and x64)
- name: Run unit tests for Fluent Bit packages (x86, x64, and ARM64)
run: |
ctest --build-run-dir "$PWD" --output-on-failure
shell: pwsh
Expand Down
Loading