Skip to content

Commit

Permalink
ci(appveyor): use proxy to solve SSL error
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Jul 21, 2023
1 parent 3df40ff commit 5c26cad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ 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
- ps: $Proxify = Start-Process -FilePath proxify.exe -ArgumentList "-config","proxify-config","-http-addr","127.0.0.1:18080"
- cmd: timeout /t 5
- cmd: certutil -addstore -f -user "Root" "proxify-config\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 All @@ -22,5 +29,8 @@ test_script:
after_test:
- cmd: copy %S2PNG_COMMAND% s2png-win32.exe

on_finish:
- ps: Stop-Process -Id $Proxify.Id

artifacts:
- path: s2png-win32.exe

0 comments on commit 5c26cad

Please sign in to comment.