aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2022-09-30 15:45:42 -0700
committerMicah Lee <micah@micahflee.com>2022-09-30 15:45:42 -0700
commit61b666626471977224d617ce3620b0f72a0610c8 (patch)
treee47c6a4cf5bb7c9e90f98b4f2862be214f59328b /.github
parentb7cbcca2229b666867073a6a775b9a9be3170a65 (diff)
downloadonionshare-61b666626471977224d617ce3620b0f72a0610c8.tar.gz
onionshare-61b666626471977224d617ce3620b0f72a0610c8.zip
Start Windows build
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-windows.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml
new file mode 100644
index 00000000..3d4a393c
--- /dev/null
+++ b/.github/workflows/build-windows.yml
@@ -0,0 +1,52 @@
+name: Build Windows
+run-name: Build win32 and win64 🚀
+on:
+ workflow_run:
+ workflows: "Run Tests"
+ types:
+ - completed
+
+jobs:
+ win64:
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install Python 3.9.14 (64-bit)
+ shell: pwsh
+ run: |
+ cd ~\Downloads
+ Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.14/python-3.9.14-amd64.exe -OutFile python-3.9.14-amd64.exe
+ .\python-3.9.14-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39
+ while($true) {
+ if ((Test-Path -Path C:\Python39\python.exe) -eq $True) {
+ Write-Output "Python is installed"
+ break
+ } else {
+ Write-Output "Waiting for Python to finish installing ..."
+ Start-Sleep -Seconds 2
+ }
+ }
+
+ - uses: actions/cache@v3
+ with:
+ path: ~\.cache\AppData\Local\pypoetry\Cache\virtualenvs
+ key: ${{ runner.os }}-win64-${{ hashFiles('desktop/poetry.lock') }}
+
+ - run:
+ name: Install poetry
+ run: C:\Python39\python -m pip install poetry
+
+ - run:
+ name: Install poetry dependencies
+ run: cd desktop && C:\Python39\scripts\poetry install
+
+ - uses: actions/cache@v3
+ with:
+ path: desktop\build\tor
+ key: ${{ runner.os }}-win64-${{ hashFiles('desktop/scripts/get-tor.py') }}
+
+ - run:
+ name: Get tor binaries from Tor Browser (64-bit)
+ run: cd desktop && C:\Python39\Scripts\poetry run python .\scripts\get-tor.py win64
+ \ No newline at end of file