From 480f6a47adbb4293ec827c537052613649da137c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 9 Sep 2026 13:39:10 +0200 Subject: [PATCH] ci: bring aarch64-windows script in line with x86_64-windows-release --- ...indows.ps1 => aarch64-windows-release.ps1} | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) rename ci/{aarch64-windows.ps1 => aarch64-windows-release.ps1} (75%) diff --git a/ci/aarch64-windows.ps1 b/ci/aarch64-windows-release.ps1 similarity index 75% rename from ci/aarch64-windows.ps1 rename to ci/aarch64-windows-release.ps1 index 3268dfd1e4eec456d247780beab3ae2542eb6897..9e470a9ffedc4d3c7a279e68e2bd395a8cd80c7b 100644 --- a/ci/aarch64-windows.ps1 +++ b/ci/aarch64-windows-release.ps1 @@ -1,20 +1,9 @@ $TARGET = "aarch64-windows-gnu" -$ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.17.0-dev.203+073889523" $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" +$PREFIX_PATH = "$($Env:USERPROFILE)\deps\zig+llvm+lld+clang-$TARGET-0.17.0-dev.203+073889523" $ZIG = "$PREFIX_PATH\bin\zig.exe" $ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 } -if (!(Test-Path "..\$ZIG_LLVM_CLANG_LLD_NAME.zip")) { - Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" - Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "..\$ZIG_LLVM_CLANG_LLD_NAME.zip" - - Write-Output "Extracting..." - Add-Type -AssemblyName System.IO.Compression.FileSystem ; - [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\..\$ZIG_LLVM_CLANG_LLD_NAME.zip", "$PWD\..") -} - function CheckLastExitCode { if (!$?) { exit 1 @@ -34,14 +23,14 @@ Set-Location -Path 'build-release' # CMake gives a syntax error when file paths with backward slashes are used. # Here, we use forward slashes only to work around this. -& cmake .. ` +cmake .. ` -GNinja ` -DCMAKE_INSTALL_PREFIX="stage3-release" ` -DCMAKE_PREFIX_PATH="$($PREFIX_PATH -Replace "\\", "/")" ` -DCMAKE_BUILD_TYPE=Release ` -DCMAKE_C_COMPILER="$($ZIG -Replace "\\", "/");cc;-target;$TARGET;-mcpu=$MCPU" ` -DCMAKE_CXX_COMPILER="$($ZIG -Replace "\\", "/");c++;-target;$TARGET;-mcpu=$MCPU" ` - -DCMAKE_AR="$ZIG" ` + -DCMAKE_AR="$($ZIG -Replace "\\", "/")" ` -DZIG_AR_WORKAROUND=ON ` -DZIG_TARGET_TRIPLE="$TARGET" ` -DZIG_TARGET_MCPU="$MCPU" ` @@ -56,18 +45,26 @@ CheckLastExitCode $Env:ZIG_LIB_DIR="$(Get-Location)\..\lib" Write-Output "Main test suite..." -& "stage3-release\bin\zig.exe" build test docs ` +stage3-release\bin\zig.exe build test docs ` --maxrss $ZSF_MAX_RSS ` --search-prefix "$PREFIX_PATH" ` -Dstatic-llvm ` -Dskip-non-native ` + -Dskip-test-incremental ` -Denable-symlinks-windows ` --test-timeout 30m CheckLastExitCode +# Ensure that the fuzzer at least compiles. +# https://codeberg.org/ziglang/zig/issues/31893 +# stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe +# CheckLastExitCode +# stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug +# CheckLastExitCode + # Ensure that stage3 and stage4 are byte-for-byte identical. Write-Output "Build and compare stage4..." -& "stage3-release\bin\zig.exe" build ` +stage3-release\bin\zig.exe build ` --prefix stage4-release ` -Denable-llvm ` -Dno-lib ` -- 2.54.0