Install cygwin in bash too

This commit is contained in:
Micah Lee 2022-05-29 11:49:59 -07:00
parent c9598a6e6d
commit c8a20bc9c6
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -101,9 +101,9 @@ jobs:
# NOTE: make sure to change when upgrading tor # NOTE: make sure to change when upgrading tor
key: "build-win64-tor-0.4.7.7" key: "build-win64-tor-0.4.7.7"
# Download cygwin # Install cygwin and required packages
- run: - run:
name: Download cygwin name: Install cygwin and required packages
shell: bash.exe --login -eo pipefail shell: bash.exe --login -eo pipefail
command: | command: |
if [[ -d "/cygdrive/c/Users/circleci/build/libevent" ]]; then if [[ -d "/cygdrive/c/Users/circleci/build/libevent" ]]; then
@ -124,29 +124,7 @@ jobs:
exit -1 exit -1
fi fi
# if (((Test-Path C:\Users\circleci\build\libevent -PathType Container) -and (Test-Path C:\Users\circleci\build\tor -PathType Container)) -eq $true) { ./setup-x86_64.exe -q -s https://mirrors.kernel.org/sourceware/cygwin/ -P libssl-devel,git,gcc-core,make,autoconf,automake,libtool,gnupg
# Write-Output "libevent and tor already compiled, skipping"
# } else {
# Write-Output "downloading cygwin installer, signature, and signing key"
# Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile C:\Users\circleci\Downloads\setup-x86_64.exe
# Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe.sig -OutFile C:\Users\circleci\Downloads\setup-x86_64.exe.sig
# Invoke-WebRequest -Uri https://cygwin.com/key/pubring.asc -OutFile C:\Users\circleci\Downloads\pubring.asc
# Write-Output "verifying signature"
# gpg --import C:\Users\circleci\Downloads\pubring.asc
# gpg --verify C:\Users\circleci\Downloads\setup-x86_64.exe.sig C:\Users\circleci\Downloads\setup-x86_64.exe
# if($? -ne $true) { throw "cygwin failed to verify" }
# }
# Install cygwin and required packages
- run:
name: Install cygwin and required packages
command: |
if (((Test-Path C:\Users\circleci\build\libevent -PathType Container) -and (Test-Path C:\Users\circleci\build\tor -PathType Container)) -eq $true) {
Write-Output "libevent and tor already compiled, skipping"
} else {
C:\Users\circleci\Downloads\setup-x86_64.exe -q -s https://mirrors.kernel.org/sourceware/cygwin/ -P libssl-devel,git,gcc-core,make,autoconf,automake,libtool,gnupg
}
# Build libevent # Build libevent
- run: - run: