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
21 changes: 12 additions & 9 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,17 @@ jobs:

- name: Configure CMake (Release)
run: |
$vcpkgRoot = "${{ github.workspace }}\vcpkg"
# github.workspace expands with backslashes on Windows; normalize to forward slashes for CMake
$ws = "${{ github.workspace }}" -replace '\\', '/'
$vcpkgRoot = "$ws/vcpkg"
$triplet = "x64-windows"
$kronos = "$vcpkgRoot\installed\$triplet"
$src = "${{ github.workspace }}\src"
$build = "${{ github.workspace }}\build\WRelease"
$kronos = "$vcpkgRoot/installed/$triplet"
$src = "$ws/src"
$build = "$ws/build/WRelease"
New-Item -ItemType Directory -Force -Path $build
cmake -B $build -S $src `
-G "Visual Studio 17 2022" -A x64 `
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot\scripts\buildsystems\vcpkg.cmake" `
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot/scripts/buildsystems/vcpkg.cmake" `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DKHRONOS="$kronos" `
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON `
Expand All @@ -78,15 +80,16 @@ jobs:

- name: Build (Release)
run: |
$build = "${{ github.workspace }}/build/WRelease"
$ws = "${{ github.workspace }}" -replace '\\', '/'
$build = "$ws/build/WRelease"
cmake --build $build --config Release --verbose
shell: pwsh

- name: Install (staging)
run: |
# Use forward slashes to avoid cmake_install.cmake syntax errors (backslash escape sequences)
$build = "${{ github.workspace }}/build/WRelease"
$prefix = "${{ github.workspace }}/build/WRelease/xilinx/xrt"
$ws = "${{ github.workspace }}" -replace '\\', '/'
$build = "$ws/build/WRelease"
$prefix = "$ws/build/WRelease/xilinx/xrt"
cmake --install $build --config Release --prefix $prefix --verbose
shell: pwsh

Expand Down
Loading