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 0cd7c17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ 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 -n 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 HTTP_PROXY=127.0.0.1:18080
- cmd: set HTTPS_PROXY=127.0.0.1:18080
- cmd: set PATH=%CARGO_PATH%\bin;%PATH%
- cmd: rustup-init.exe --default-toolchain %RUST_VERSION% -y

build_script:
- cmd: cargo build
Expand Down

0 comments on commit 0cd7c17

Please sign in to comment.