Skip to content

Commit 1f20aba

Browse files
committed
Install Zig on Windows manually
Signed-off-by: David Calavera <[email protected]>
1 parent d2cfc2e commit 1f20aba

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.appveyor.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ environment:
88
GRADLE_OPTS: -Dorg.gradle.daemon=false
99
nodejs_version: "14.17.6"
1010
CARGO_LAMBDA_VERSION: "v0.5.3"
11+
ZIGLANG_VERSION: "0.9.1"
1112

1213
matrix:
1314
- PYTHON: "C:\\Python36-x64"
@@ -74,8 +75,9 @@ for:
7475
- ps: "&powershell -NoProfile -ExecutionPolicy unrestricted -Command \"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version 6.0.200 -InstallDir 'C:\\Program Files\\dotnet\\'\""
7576

7677
# install Zig to cross compile Rust functions
77-
- "npm install -g @ziglang/cli"
78-
- "ziglang version"
78+
- ps: Invoke-WebRequest -Uri https://ziglang.org/download/$env:ZIGLANG_VERSION/zig-windows-x86_64-$env:ZIGLANG_VERSION.zip -OutFile C:\Users\appveyor\ziglang.zip
79+
- ps: Expand-Archive -DestinationPath C:\Users\appveyor\ C:\Users\appveyor\ziglang.zip
80+
- set PATH=%PATH%;C:\Users\appveyor\zig-windows-x86_64-%ZIGLANG_VERSION%
7981

8082
# install Rust
8183
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
@@ -118,8 +120,8 @@ for:
118120
- sh: "PATH=/opt/gradle/gradle-5.5/bin:$PATH"
119121

120122
# install Zig to cross compile Rust functions
121-
- "npm install -g @ziglang/cli"
122-
- "ziglang version"
123+
- sh: "pip install ziglang"
124+
- sh: "python -m ziglang version"
123125

124126
# Install rust
125127
- sh: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"

0 commit comments

Comments
 (0)