Skip to content

Commit

Permalink
ci(appveyor): use proxy to solve SSL error
Browse files Browse the repository at this point in the history
Thanks to badrelmers.
rust-lang/cargo#12296 (comment)
  • Loading branch information
dbohdan committed Jul 21, 2023
1 parent 3df40ff commit 272ab8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ environment:
CARGO_PATH: c:\users\appveyor\.cargo
RUST_VERSION: 1.43.0
CARGO_HTTP_CHECK_REVOKE: false
HTTP_PROXY: 127.0.0.1:18080
HTTPS_PROXY: 127.0.0.1:18080
S2PNG_COMMAND: target\debug\s2png.exe

cache:
- '$(CARGO_PATH) -> appveyor.yml, Cargo.lock, Cargo.toml'

install:
- cmd: appveyor-retry appveyor DownloadFile https://github.com/projectdiscovery/proxify/releases/download/v0.0.9/proxify_0.0.9_windows_386.zip -FileName proxify.zip
- cmd: unzip proxify.zip
- cmd: proxify.exe -http-addr 127.0.0.1:18080
- cmd: certutil -addstore -f -user "Root" "%USERPROFILE%\.config\proxify\cacert.pem"
- cmd: appveyor-retry appveyor DownloadFile https://win.rustup.rs -FileName rustup-init.exe
- cmd: rustup-init.exe --default-toolchain %RUST_VERSION% -y
- cmd: set PATH=%CARGO_PATH%\bin;%PATH%
Expand Down

0 comments on commit 272ab8f

Please sign in to comment.