mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-09 05:44:36 +00:00
Don't need to use venv in CI builds
This commit is contained in:
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
- name: Append git revision to project version
|
||||
run: |
|
||||
(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
|
||||
|
||||
# Ensure Python version
|
||||
@@ -36,14 +36,10 @@ jobs:
|
||||
with:
|
||||
python-version: ${{env.PYTHON_VERSION}}
|
||||
|
||||
- name: Set up Python virtual environment
|
||||
run: |
|
||||
python3 -m venv env
|
||||
|
||||
- name: Install project dependencies
|
||||
run: |
|
||||
.\env\Scripts\activate
|
||||
python3 -m pip install wheel -r requirements.txt
|
||||
python3 -m pip install wheel
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
- name: Install UPX
|
||||
run: |
|
||||
@@ -54,12 +50,10 @@ jobs:
|
||||
|
||||
- name: Install PyInstaller
|
||||
run: |
|
||||
.\env\Scripts\activate
|
||||
python3 -m pip install pyinstaller
|
||||
|
||||
- name: Create portable executable
|
||||
run: |
|
||||
.\env\Scripts\activate
|
||||
pyinstaller build.spec
|
||||
|
||||
- name: Create release folder
|
||||
@@ -105,18 +99,13 @@ jobs:
|
||||
sudo apt update
|
||||
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
|
||||
run: |
|
||||
source ./env/bin/activate
|
||||
python3 -m pip install wheel -r requirements.txt
|
||||
python3 -m pip install wheel
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
- name: Install PyInstaller
|
||||
run: |
|
||||
source ./env/bin/activate
|
||||
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.
|
||||
@@ -133,7 +122,6 @@ jobs:
|
||||
|
||||
- name: Create portable executable
|
||||
run: |
|
||||
source ./env/bin/activate
|
||||
LD_LIBRARY_PATH=/tmp/libXft/lib xvfb-run --auto-servernum pyinstaller build.spec
|
||||
|
||||
- name: Show PyInstaller warnings
|
||||
@@ -176,7 +164,7 @@ jobs:
|
||||
|
||||
- name: Append git revision to project version
|
||||
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
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user