2022-09-30 15:45:42 -07:00
|
|
|
name: Build Windows
|
2022-09-30 16:25:07 -07:00
|
|
|
run-name: Build win32 and win64
|
2022-09-30 15:45:42 -07:00
|
|
|
on:
|
2022-09-30 16:01:03 -07:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- github-actions
|
2022-09-30 15:45:42 -07:00
|
|
|
|
|
|
|
jobs:
|
2022-09-30 16:25:07 -07:00
|
|
|
build-win64:
|
2022-09-30 15:45:42 -07:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: ~\.cache\AppData\Local\pypoetry\Cache\virtualenvs
|
|
|
|
key: ${{ runner.os }}-win64-${{ hashFiles('desktop/poetry.lock') }}
|
|
|
|
|
2022-09-30 16:25:07 -07:00
|
|
|
- name: Install poetry
|
|
|
|
run: C:\hostedtoolcache\windows\Python\3.9.13\x64\python -m pip install poetry
|
|
|
|
|
|
|
|
- name: Explore
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
which poetry
|
2022-09-30 15:45:42 -07:00
|
|
|
|
2022-09-30 16:25:07 -07:00
|
|
|
- name: Install poetry dependencies
|
|
|
|
run: cd desktop && poetry install
|
2022-09-30 15:45:42 -07:00
|
|
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: desktop\build\tor
|
|
|
|
key: ${{ runner.os }}-win64-${{ hashFiles('desktop/scripts/get-tor.py') }}
|
|
|
|
|
2022-09-30 16:25:07 -07:00
|
|
|
- name: Get tor binaries from Tor Browser (64-bit)
|
|
|
|
run: cd desktop && poetry run python .\scripts\get-tor.py win64
|