mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-22 13:34:23 -04:00
Try using Python 3.9 that comes with github actions runner
This commit is contained in:
parent
790fe8250c
commit
7c44deda09
2 changed files with 14 additions and 29 deletions
41
.github/workflows/build-windows.yml
vendored
41
.github/workflows/build-windows.yml
vendored
|
@ -1,51 +1,36 @@
|
||||||
name: Build Windows
|
name: Build Windows
|
||||||
run-name: Build win32 and win64 🚀
|
run-name: Build win32 and win64
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- github-actions
|
- github-actions
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
win64:
|
build-win64:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~\.cache\AppData\Local\pypoetry\Cache\virtualenvs
|
path: ~\.cache\AppData\Local\pypoetry\Cache\virtualenvs
|
||||||
key: ${{ runner.os }}-win64-${{ hashFiles('desktop/poetry.lock') }}
|
key: ${{ runner.os }}-win64-${{ hashFiles('desktop/poetry.lock') }}
|
||||||
|
|
||||||
- run:
|
- name: Install poetry
|
||||||
name: Install poetry
|
run: C:\hostedtoolcache\windows\Python\3.9.13\x64\python -m pip install poetry
|
||||||
run: C:\Python39\python -m pip install poetry
|
|
||||||
|
|
||||||
- run:
|
- name: Explore
|
||||||
name: Install poetry dependencies
|
shell: pwsh
|
||||||
run: cd desktop && C:\Python39\scripts\poetry install
|
run: |
|
||||||
|
which poetry
|
||||||
|
|
||||||
|
- name: Install poetry dependencies
|
||||||
|
run: cd desktop && poetry install
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: desktop\build\tor
|
path: desktop\build\tor
|
||||||
key: ${{ runner.os }}-win64-${{ hashFiles('desktop/scripts/get-tor.py') }}
|
key: ${{ runner.os }}-win64-${{ hashFiles('desktop/scripts/get-tor.py') }}
|
||||||
|
|
||||||
- run:
|
- name: Get tor binaries from Tor Browser (64-bit)
|
||||||
name: Get tor binaries from Tor Browser (64-bit)
|
run: cd desktop && poetry run python .\scripts\get-tor.py win64
|
||||||
run: cd desktop && C:\Python39\Scripts\poetry run python .\scripts\get-tor.py win64
|
|
||||||
|
|
||||||
|
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
run-name: Run tests 🚀
|
run-name: Run tests
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue