Skip to content

Commit d2cfc2e

Browse files
committed
Use NPM to install Zig.
It might give less problems than installing it with Python. Signed-off-by: David Calavera <[email protected]>
1 parent 91bc9ca commit d2cfc2e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.appveyor.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ for:
7474
- 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\\'\""
7575

7676
# install Zig to cross compile Rust functions
77-
- ps: "$env:CARGO_ZIGBUILD_PYTHON_PATH = \"$env:PYTHON\\python.exe\""
78-
- "%PYTHON%\\python.exe -m pip install ziglang"
79-
- "%PYTHON%\\python.exe -m ziglang version"
77+
- "npm install -g @ziglang/cli"
78+
- "ziglang version"
8079

8180
# install Rust
8281
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
@@ -119,8 +118,8 @@ for:
119118
- sh: "PATH=/opt/gradle/gradle-5.5/bin:$PATH"
120119

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

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

0 commit comments

Comments
 (0)