Skip to content

Commit

Permalink
CI: windows: fix zig lib dir path
Browse files Browse the repository at this point in the history
See #12685
  • Loading branch information
andrewrk committed Dec 7, 2022
1 parent 6d48357 commit 1122d9d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ci/x86_64-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ $MCPU = "baseline"
$ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip"
$PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME"
$ZIG = "$PREFIX_PATH\bin\zig.exe"
$ZIG_LIB_DIR = "$(Get-Location)\lib"

Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"
Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip"
Expand Down Expand Up @@ -52,17 +53,17 @@ CheckLastExitCode

Write-Output "Main test suite..."
& "stage3-release\bin\zig.exe" build test docs `
--zig-lib-dir "..\lib" `
--search-prefix "../$ZIG_LLVM_CLANG_LLD_NAME" `
--zig-lib-dir "$ZIG_LIB_DIR" `
--search-prefix "$PREFIX_PATH" `
-Dstatic-llvm `
-Dskip-non-native `
-Denable-symlinks-windows
CheckLastExitCode

Write-Output "Testing Autodocs..."
& "stage3-release\bin\zig.exe" test "..\lib\std\std.zig" `
--zig-lib-dir "..\lib" `
-femit-docs `
-fno-emit-bin
--zig-lib-dir "$ZIG_LIB_DIR" `
-femit-docs `
-fno-emit-bin
CheckLastExitCode

0 comments on commit 1122d9d

Please sign in to comment.