mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Switch to bash
This commit is contained in:
parent
2eee62c705
commit
c9598a6e6d
@ -104,20 +104,39 @@ jobs:
|
|||||||
# Download cygwin
|
# Download cygwin
|
||||||
- run:
|
- run:
|
||||||
name: Download cygwin
|
name: Download cygwin
|
||||||
|
shell: bash.exe --login -eo pipefail
|
||||||
command: |
|
command: |
|
||||||
if (((Test-Path C:\Users\circleci\build\libevent -PathType Container) -and (Test-Path C:\Users\circleci\build\tor -PathType Container)) -eq $true) {
|
if [[ -d "/cygdrive/c/Users/circleci/build/libevent" ]]; then
|
||||||
Write-Output "libevent and tor already compiled, skipping"
|
if [[ -d "/cygdrive/c/Users/circleci/build/tor" ]]; then
|
||||||
} else {
|
echo "libevent and tor already compiled, skipping"
|
||||||
Write-Output "downloading cygwin installer, signature, and signing key"
|
exit 0
|
||||||
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile C:\Users\circleci\Downloads\setup-x86_64.exe
|
fi
|
||||||
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe.sig -OutFile C:\Users\circleci\Downloads\setup-x86_64.exe.sig
|
fi
|
||||||
Invoke-WebRequest -Uri https://cygwin.com/key/pubring.asc -OutFile C:\Users\circleci\Downloads\pubring.asc
|
|
||||||
|
|
||||||
Write-Output "verifying signature"
|
curl -o setup-x86_64.exe https://cygwin.com/setup-x86_64.exe
|
||||||
gpg --import C:\Users\circleci\Downloads\pubring.asc
|
curl -o setup-x86_64.exe.sig https://cygwin.com/setup-x86_64.exe.sig
|
||||||
gpg --verify C:\Users\circleci\Downloads\setup-x86_64.exe.sig C:\Users\circleci\Downloads\setup-x86_64.exe
|
curl -o pubring.asc https://cygwin.com/key/pubring.asc
|
||||||
if($? -ne $true) { throw "cygwin failed to verify" }
|
|
||||||
}
|
gpg --import pubring.asc
|
||||||
|
gpg --verify setup-x86_64.exe.sig setup-x86_64.exe
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "cygwin signature doesn't verify"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 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 {
|
||||||
|
# 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
|
# Install cygwin and required packages
|
||||||
- run:
|
- run:
|
||||||
@ -134,7 +153,7 @@ jobs:
|
|||||||
name: Build libevent
|
name: Build libevent
|
||||||
shell: C:\\cygwin64\\bin\\bash.exe --login -eo pipefail
|
shell: C:\\cygwin64\\bin\\bash.exe --login -eo pipefail
|
||||||
command: |
|
command: |
|
||||||
if [[ -d "/cygdrive/c/Users/circleci/build/openssl" ]]; then
|
if [[ -d "/cygdrive/c/Users/circleci/build/libevent" ]]; then
|
||||||
echo "libevent already compiled, skipping"
|
echo "libevent already compiled, skipping"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user