Fix Gitea runner Python setup by installing via apt instead of actions/setup-python
Release Binaries / release (push) Failing after 4m26s
Release Binaries / release (push) Failing after 4m26s
This commit is contained in:
@@ -13,19 +13,18 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Install Python and Dependencies
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.12'
|
|
||||||
|
|
||||||
- name: Install Build Dependencies
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
pip install pyinstaller -r requirements.txt
|
apt-get update -y
|
||||||
|
apt-get install -y python3 python3-pip python3-venv binutils zip
|
||||||
|
fi
|
||||||
|
python3 -m pip install --upgrade pip --break-system-packages || python3 -m pip install --upgrade pip || true
|
||||||
|
pip3 install pyinstaller -r requirements.txt --break-system-packages || pip3 install pyinstaller -r requirements.txt
|
||||||
|
|
||||||
- name: Compile Standalone Binaries
|
- name: Compile Standalone Binaries
|
||||||
run: |
|
run: |
|
||||||
python package_dist.py
|
python3 package_dist.py
|
||||||
|
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user