mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 08:19:28 -05:00
Download and install cygwin in separate tasks
This commit is contained in:
parent
144b01d7e4
commit
2eee62c705
@ -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"
|
||||||
|
|
||||||
# Install cygwin and required packages
|
# Download cygwin
|
||||||
- run:
|
- run:
|
||||||
name: Install cygwin and required packages
|
name: Download cygwin
|
||||||
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 (((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"
|
Write-Output "libevent and tor already compiled, skipping"
|
||||||
@ -117,15 +117,16 @@ jobs:
|
|||||||
gpg --import C:\Users\circleci\Downloads\pubring.asc
|
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
|
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" }
|
if($? -ne $true) { throw "cygwin failed to verify" }
|
||||||
|
}
|
||||||
|
|
||||||
Write-Output "installing cygwin and requited packages"
|
# Install cygwin and required packages
|
||||||
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,gnupg2
|
- run:
|
||||||
C:\cygwin64\bin\bash.exe -c "ln -s /usr/bin/gpg2 /usr/bin/gpg"
|
name: Install cygwin and required packages
|
||||||
C:\cygwin64\bin\bash.exe -c "gpg --list-keys"
|
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 "creating folders"
|
Write-Output "libevent and tor already compiled, skipping"
|
||||||
mkdir C:\Users\circleci\src
|
} else {
|
||||||
mkdir C:\Users\circleci\build
|
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
|
||||||
@ -138,6 +139,9 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p /cygdrive/c/Users/circleci/src
|
||||||
|
mkdir -p /cygdrive/c/Users/circleci/build
|
||||||
|
|
||||||
# Get source
|
# Get source
|
||||||
curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x9e3ac83a27974b84d1b3401db86086848ef8686d" | gpg --import
|
curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x9e3ac83a27974b84d1b3401db86086848ef8686d" | gpg --import
|
||||||
cd /cygdrive/c/Users/circleci/src
|
cd /cygdrive/c/Users/circleci/src
|
||||||
|
Loading…
Reference in New Issue
Block a user