authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 16:22:02-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 16:22:02-07:00
logb2cf10c5d51e351f5a729d20d7372ac90ebb6779
treef5713d329f70d39e0f630d2ccd2f1a41900d604b
parent01a44e9aa489f152958ae10bc1119e33fed9fba5

CI: disable windows testing

We never got this working on GitHub Actions with the 0.10.x branch.

2 files changed, 0 insertions(+), 78 deletions(-)

.github/workflows/ci.yaml-9
......@@ -45,12 +45,3 @@ jobs:
4545 uses: actions/checkout@v3
4646 - name: Build and Test
4747 run: ci/x86_64-macos.sh
48 x86_64-windows:
49 runs-on: windows-latest
50 env:
51 ARCH: "x86_64"
52 steps:
53 - name: Checkout
54 uses: actions/checkout@v3
55 - name: Build and Test
56 run: ci/x86_64-windows.ps1
ci/x86_64-windows.ps1 deleted-69
......@@ -1,69 +0,0 @@
1$TARGET = "$($Env:ARCH)-windows-gnu"
2$ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.11.0-dev.448+e6e459e9e"
3$MCPU = "baseline"
4$ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip"
5$PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME"
6$ZIG = "$PREFIX_PATH\bin\zig.exe"
7$ZIG_LIB_DIR = "$(Get-Location)\lib"
8
9Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"
10Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip"
11
12Write-Output "Extracting..."
13Add-Type -AssemblyName System.IO.Compression.FileSystem ;
14[System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/$ZIG_LLVM_CLANG_LLD_NAME.zip", "$PWD")
15
16function CheckLastExitCode {
17 if (!$?) {
18 exit 1
19 }
20 return 0
21}
22
23# Make the `zig version` number consistent.
24# This will affect the `zig build` command below which uses `git describe`.
25git config core.abbrev 9
26git fetch --tags
27
28if ((git rev-parse --is-shallow-repository) -eq "true") {
29 git fetch --unshallow # `git describe` won't work on a shallow repo
30}
31
32Write-Output "Building from source..."
33Remove-Item -Path 'build-release' -Recurse -Force -ErrorAction Ignore
34New-Item -Path 'build-release' -ItemType Directory
35Set-Location -Path 'build-release'
36
37# CMake gives a syntax error when file paths with backward slashes are used.
38# Here, we use forward slashes only to work around this.
39& cmake .. `
40 -GNinja `
41 -DCMAKE_INSTALL_PREFIX="stage3-release" `
42 -DCMAKE_PREFIX_PATH="$($PREFIX_PATH -Replace "\\", "/")" `
43 -DCMAKE_BUILD_TYPE=Release `
44 -DCMAKE_C_COMPILER="$($ZIG -Replace "\\", "/");cc;-target;$TARGET;-mcpu=$MCPU" `
45 -DCMAKE_CXX_COMPILER="$($ZIG -Replace "\\", "/");c++;-target;$TARGET;-mcpu=$MCPU" `
46 -DZIG_TARGET_TRIPLE="$TARGET" `
47 -DZIG_TARGET_MCPU="$MCPU" `
48 -DZIG_STATIC=ON
49CheckLastExitCode
50
51ninja install
52CheckLastExitCode
53
54Write-Output "Main test suite..."
55& "stage3-release\bin\zig.exe" build test docs `
56 --zig-lib-dir "$ZIG_LIB_DIR" `
57 --search-prefix "$PREFIX_PATH" `
58 -Dstatic-llvm `
59 -Dskip-non-native `
60 -Denable-symlinks-windows
61CheckLastExitCode
62
63Write-Output "Testing Autodocs..."
64& "stage3-release\bin\zig.exe" test "..\lib\std\std.zig" `
65 --zig-lib-dir "$ZIG_LIB_DIR" `
66 -femit-docs `
67 -fno-emit-bin
68CheckLastExitCode
69