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
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install Build Dependencies
|
||||
- name: Install Python and Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pyinstaller -r requirements.txt
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
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
|
||||
run: |
|
||||
python package_dist.py
|
||||
python3 package_dist.py
|
||||
|
||||
- name: Publish Release
|
||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||
|
||||
Reference in New Issue
Block a user