mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03:00
Move tor stuff into build-tor-win64
This commit is contained in:
parent
cc0ab0ef79
commit
fd32fb5cc4
1 changed files with 44 additions and 30 deletions
|
@ -9,10 +9,14 @@ workflows:
|
||||||
jobs:
|
jobs:
|
||||||
- test-cli
|
- test-cli
|
||||||
# - test-gui
|
# - test-gui
|
||||||
- build-win64:
|
- build-tor-win64:
|
||||||
requires:
|
requires:
|
||||||
- test-cli
|
- test-cli
|
||||||
# - test-gui
|
# - build-win64:
|
||||||
|
# requires:
|
||||||
|
# - build-tor-win64
|
||||||
|
# - test-cli
|
||||||
|
# # - test-gui
|
||||||
# - build-win32:
|
# - build-win32:
|
||||||
# requires:
|
# requires:
|
||||||
# - test-cli
|
# - test-cli
|
||||||
|
@ -82,7 +86,7 @@ jobs:
|
||||||
cd ~/project/desktop
|
cd ~/project/desktop
|
||||||
QT_DEBUG_PLUGINS=1 xvfb-run poetry run pytest -v ./tests/test_gui_*.py
|
QT_DEBUG_PLUGINS=1 xvfb-run poetry run pytest -v ./tests/test_gui_*.py
|
||||||
|
|
||||||
build-win64:
|
build-tor-win64:
|
||||||
executor:
|
executor:
|
||||||
name: win/default
|
name: win/default
|
||||||
shell: bash.exe
|
shell: bash.exe
|
||||||
|
@ -92,30 +96,6 @@ jobs:
|
||||||
TOR_TAG: "tor-0.4.7.7"
|
TOR_TAG: "tor-0.4.7.7"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
# # Install python
|
|
||||||
# - run:
|
|
||||||
# name: Install Python 3.9.12
|
|
||||||
# command: |
|
|
||||||
# choco install python3 --version=3.9.12
|
|
||||||
|
|
||||||
# # Install poetry
|
|
||||||
# - run:
|
|
||||||
# name: Install poetry
|
|
||||||
# command: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
|
|
||||||
|
|
||||||
# # Install poetry dependencies
|
|
||||||
# - restore_cache:
|
|
||||||
# key: build-win64-desktop-poetry-deps-{{ checksum "C:\Users\circleci\project\desktop\poetry.lock" }}
|
|
||||||
# - run:
|
|
||||||
# name: Install poetry dependencies
|
|
||||||
# command: |
|
|
||||||
# cd C:\Users\circleci\project\desktop
|
|
||||||
# poetry install
|
|
||||||
# - save_cache:
|
|
||||||
# key: build-win64-desktop-poetry-deps-{{ checksum "C:\Users\circleci\project\desktop\poetry.lock" }}
|
|
||||||
# paths:
|
|
||||||
# - C:\Users\circleci\AppData\Local\pypoetry\Cache\virtualenvs
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install msys2 and dependencies
|
name: Install msys2 and dependencies
|
||||||
command: |
|
command: |
|
||||||
|
@ -127,7 +107,7 @@ jobs:
|
||||||
|
|
||||||
# Build openssl
|
# Build openssl
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: "build-win64-openssl-{{ .Environment.OPENSSL_TAG }}"
|
key: "build-win64-openssl-3.0.3"
|
||||||
- run:
|
- run:
|
||||||
name: Build openssl
|
name: Build openssl
|
||||||
command: |
|
command: |
|
||||||
|
@ -141,7 +121,7 @@ jobs:
|
||||||
git clone https://github.com/openssl/openssl.git
|
git clone https://github.com/openssl/openssl.git
|
||||||
cd openssl
|
cd openssl
|
||||||
git tag -v $OPENSSL_TAG
|
git tag -v $OPENSSL_TAG
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "openssl tag doesn't verify"
|
echo "openssl tag doesn't verify"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
@ -154,7 +134,7 @@ jobs:
|
||||||
cp -r /opt/openssl-build /c/Users/circleci/build/openssl
|
cp -r /opt/openssl-build /c/Users/circleci/build/openssl
|
||||||
fi
|
fi
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: "build-win64-openssl-{{ .Environment.OPENSSL_TAG }}"
|
key: "build-win64-openssl-3.0.3"
|
||||||
paths:
|
paths:
|
||||||
- C:\Users\circleci\build\openssl
|
- C:\Users\circleci\build\openssl
|
||||||
|
|
||||||
|
@ -234,6 +214,40 @@ jobs:
|
||||||
# if($? -ne $true) { throw "tor tag doesn't verify" }
|
# if($? -ne $true) { throw "tor tag doesn't verify" }
|
||||||
# git checkout $TorTag
|
# git checkout $TorTag
|
||||||
|
|
||||||
|
build-win64:
|
||||||
|
executor:
|
||||||
|
name: win/default
|
||||||
|
shell: bash.exe
|
||||||
|
environment:
|
||||||
|
OPENSSL_TAG: "openssl-3.0.3"
|
||||||
|
LIBEVENT_TAG: "release-2.1.12-stable"
|
||||||
|
TOR_TAG: "tor-0.4.7.7"
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
# # Install python
|
||||||
|
# - run:
|
||||||
|
# name: Install Python 3.9.12
|
||||||
|
# command: |
|
||||||
|
# choco install python3 --version=3.9.12
|
||||||
|
|
||||||
|
# # Install poetry
|
||||||
|
# - run:
|
||||||
|
# name: Install poetry
|
||||||
|
# command: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
|
||||||
|
|
||||||
|
# # Install poetry dependencies
|
||||||
|
# - restore_cache:
|
||||||
|
# key: build-win64-desktop-poetry-deps-{{ checksum "C:\Users\circleci\project\desktop\poetry.lock" }}
|
||||||
|
# - run:
|
||||||
|
# name: Install poetry dependencies
|
||||||
|
# command: |
|
||||||
|
# cd C:\Users\circleci\project\desktop
|
||||||
|
# poetry install
|
||||||
|
# - save_cache:
|
||||||
|
# key: build-win64-desktop-poetry-deps-{{ checksum "C:\Users\circleci\project\desktop\poetry.lock" }}
|
||||||
|
# paths:
|
||||||
|
# - C:\Users\circleci\AppData\Local\pypoetry\Cache\virtualenvs
|
||||||
|
|
||||||
# - restore_cache:
|
# - restore_cache:
|
||||||
# key: download-tor-win32-0.4.7.7
|
# key: download-tor-win32-0.4.7.7
|
||||||
# - run:
|
# - run:
|
||||||
|
|
Loading…
Reference in a new issue