Don't need to use venv in CI builds
This commit is contained in:
1 parent
0d72f1ebea
commit
b655803bf5
1 file changed
+6
-18
@@ -27,7 +27,7 @@ jobs:
|
|||||||
- name: Append git revision to project version
|
- name: Append git revision to project version
|
||||||
run: |
|
run: |
|
||||||
(Get-Content version.py) `
|
(Get-Content version.py) `
|
||||||
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |`
|
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{steps.vars.outputs.sha_short}}" |`
|
||||||
Out-File version.py
|
Out-File version.py
|
||||||
|
|
||||||
# Ensure Python version
|
# Ensure Python version
|
||||||
@@ -36,14 +36,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{env.PYTHON_VERSION}}
|
python-version: ${{env.PYTHON_VERSION}}
|
||||||
|
|
||||||
- name: Set up Python virtual environment
|
|
||||||
run: |
|
|
||||||
python3 -m venv env
|
|
||||||
|
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
run: |
|
run: |
|
||||||
.\env\Scripts\activate
|
python3 -m pip install wheel
|
||||||
python3 -m pip install wheel -r requirements.txt
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Install UPX
|
- name: Install UPX
|
||||||
run: |
|
run: |
|
||||||
@@ -54,12 +50,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Install PyInstaller
|
- name: Install PyInstaller
|
||||||
run: |
|
run: |
|
||||||
.\env\Scripts\activate
|
|
||||||
python3 -m pip install pyinstaller
|
python3 -m pip install pyinstaller
|
||||||
|
|
||||||
- name: Create portable executable
|
- name: Create portable executable
|
||||||
run: |
|
run: |
|
||||||
.\env\Scripts\activate
|
|
||||||
pyinstaller build.spec
|
pyinstaller build.spec
|
||||||
|
|
||||||
- name: Create release folder
|
- name: Create release folder
|
||||||
@@ -105,18 +99,13 @@ jobs:
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install gir1.2-appindicator3-0.1 libgirepository1.0-dev python3-tk
|
sudo apt install gir1.2-appindicator3-0.1 libgirepository1.0-dev python3-tk
|
||||||
|
|
||||||
- name: Set up Python virtual environment
|
|
||||||
run: |
|
|
||||||
python3 -m venv env
|
|
||||||
|
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
run: |
|
run: |
|
||||||
source ./env/bin/activate
|
python3 -m pip install wheel
|
||||||
python3 -m pip install wheel -r requirements.txt
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Install PyInstaller
|
- name: Install PyInstaller
|
||||||
run: |
|
run: |
|
||||||
source ./env/bin/activate
|
|
||||||
python3 -m pip install pyinstaller
|
python3 -m pip install pyinstaller
|
||||||
|
|
||||||
# NOTE: Remove this step if/once libxft gets updated to 2.3.5 or newer on Ubuntu 20.04, which currently has 2.3.3.
|
# NOTE: Remove this step if/once libxft gets updated to 2.3.5 or newer on Ubuntu 20.04, which currently has 2.3.3.
|
||||||
@@ -133,7 +122,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Create portable executable
|
- name: Create portable executable
|
||||||
run: |
|
run: |
|
||||||
source ./env/bin/activate
|
|
||||||
LD_LIBRARY_PATH=/tmp/libXft/lib xvfb-run --auto-servernum pyinstaller build.spec
|
LD_LIBRARY_PATH=/tmp/libXft/lib xvfb-run --auto-servernum pyinstaller build.spec
|
||||||
|
|
||||||
- name: Show PyInstaller warnings
|
- name: Show PyInstaller warnings
|
||||||
@@ -176,7 +164,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Append git revision to project version
|
- name: Append git revision to project version
|
||||||
run: |
|
run: |
|
||||||
sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{ steps.vars.outputs.sha_short }}/" version.py
|
sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{steps.vars.outputs.sha_short}}/" version.py
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user