Try building tor as well

This commit is contained in:
Micah Lee 2022-05-29 12:02:15 -07:00
parent 75d6f10f30
commit 304f4cf8dc
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -153,7 +153,9 @@ jobs:
# Build # Build
./autogen.sh ./autogen.sh
./configure --prefix=/opt/libevent-build --with-pic ./configure \
--prefix=/opt/libevent-build \
--with-pic
make -j$(nproc) make -j$(nproc)
make install make install
cp -r /opt/libevent-build /cygdrive/c/Users/circleci/build/libevent cp -r /opt/libevent-build /cygdrive/c/Users/circleci/build/libevent
@ -163,46 +165,45 @@ jobs:
paths: paths:
- C:\Users\circleci\build\libevent - C:\Users\circleci\build\libevent
# # Build tor # Build tor
# - run: - run:
# name: Build tor name: Build tor
# command: | shell: C:\\cygwin64\\bin\\bash.exe --login -eo pipefail
# # tor signing key command: |
# curl https://keys.openpgp.org/vks/v1/by-fingerprint/B74417EDDF22AC9F9E90F49142E86A2A11F48D36 | gpg --import if [[ -d "/cygdrive/c/Users/circleci/build/tor" ]]; then
# $LibeventTag = "release-2.1.12-stable" echo "tor already compiled, skipping"
# $TorTag = "tor-0.4.7.7" exit 0
fi
# choco install msys2 --params "/NoUpdate /InstallDir:C:\msys2" mkdir -p /cygdrive/c/Users/circleci/src
# C:\msys2\usr\bin\bash -c "pacman --sync --noconfirm msys/autoconf" mkdir -p /cygdrive/c/Users/circleci/build
# C:\msys2\usr\bin\bash -c "pacman --sync --noconfirm msys/automake"
# # Get libevent source # Get source
# gpg --recv-key 9E3AC83A27974B84D1B3401DB86086848EF8686D curl https://keys.openpgp.org/vks/v1/by-fingerprint/B74417EDDF22AC9F9E90F49142E86A2A11F48D36 | gpg --import
# cd C:\Users\circleci\src cd /cygdrive/c/Users/circleci/src
# git clone https://github.com/libevent/libevent.git git clone https://git.torproject.org/tor.git
# cd libevent cd tor
# git tag -v $LibeventTag git tag -v $TOR_TAG
# if($? -ne $true) { throw "libevent tag doesn't verify" } if [ $? -ne 0 ]; then
# git checkout $LibeventTag echo "tor tag doesn't verify"
exit -1
fi
git checkout $TOR_TAG
# # Build libevent # Build
# $BashScript = @" ./configure \
# #!/bin/bash --prefix=/opt/tor-build \
# export PATH=/c/msys2/usr/bin:$PATH --enable-static-libevent \
# cd /c/Users/circleci/src/libevent --with-libevent-dir=/cygdrive/c/Users/circleci/build/libevent \
# ./autogen.sh --disable-asciidoc
# ./configure --prefix=/opt/libevent-build --with-pic make -j$(nproc)
# make -j8 install make install
# "@ cp -r /opt/tor-build /cygdrive/c/Users/circleci/build/tor
- save_cache:
# # Get tor source # NOTE: make sure to change when upgrading tor
# gpg --recv-key B74417EDDF22AC9F9E90F49142E86A2A11F48D36 key: "build-win64-tor-0.4.7.7"
# cd C:\Users\circleci\src paths:
# git clone https://git.torproject.org/tor.git - C:\Users\circleci\build\tor
# cd tor
# git tag -v $TorTag
# if($? -ne $true) { throw "tor tag doesn't verify" }
# git checkout $TorTag
# # Install python # # Install python
# - run: # - run: