mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 10:40:43 -08:00
Update build-packages.yml
This commit is contained in:
parent
bb8b7999a0
commit
2a4bd7014d
1 changed files with 32 additions and 32 deletions
64
.github/workflows/build-packages.yml
vendored
64
.github/workflows/build-packages.yml
vendored
|
|
@ -255,37 +255,37 @@ jobs:
|
||||||
G4F_VERSION=${{ needs.prepare.outputs.version }}
|
G4F_VERSION=${{ needs.prepare.outputs.version }}
|
||||||
|
|
||||||
# Debian Packages
|
# Debian Packages
|
||||||
build-debian:
|
# build-debian:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: prepare
|
# needs: prepare
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
architecture: [amd64, arm64, armhf]
|
# architecture: [amd64, arm64, armhf]
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
# uses: actions/setup-python@v5
|
||||||
with:
|
# with:
|
||||||
python-version: "3.x"
|
# python-version: "3.x"
|
||||||
- name: Install build dependencies
|
# - name: Install build dependencies
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-get update
|
# sudo apt-get update
|
||||||
sudo apt-get install -y dpkg-dev build-essential python3-setuptools
|
# sudo apt-get install -y dpkg-dev build-essential python3-setuptools
|
||||||
python3 -m pip install --upgrade pip
|
# python3 -m pip install --upgrade pip
|
||||||
pip3 install -r requirements-min.txt
|
# pip3 install -r requirements-min.txt
|
||||||
pip3 install -e .
|
# pip3 install -e .
|
||||||
- name: Build Debian package
|
# - name: Build Debian package
|
||||||
env:
|
# env:
|
||||||
G4F_VERSION: ${{ needs.prepare.outputs.version }}
|
# G4F_VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
ARCH: ${{ matrix.architecture }}
|
# ARCH: ${{ matrix.architecture }}
|
||||||
run: |
|
# run: |
|
||||||
chmod +x scripts/build-deb.sh
|
# chmod +x scripts/build-deb.sh
|
||||||
./scripts/build-deb.sh
|
# ./scripts/build-deb.sh
|
||||||
- name: Upload Debian package
|
# - name: Upload Debian package
|
||||||
uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: debian-${{ matrix.architecture }}
|
# name: debian-${{ matrix.architecture }}
|
||||||
path: g4f-*-${{ matrix.architecture }}.deb
|
# path: g4f-*-${{ matrix.architecture }}.deb
|
||||||
|
|
||||||
# WinGet Package Manifest
|
# WinGet Package Manifest
|
||||||
create-winget-manifest:
|
create-winget-manifest:
|
||||||
|
|
@ -367,7 +367,7 @@ jobs:
|
||||||
# Release Creation
|
# Release Creation
|
||||||
create-release:
|
create-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [prepare, build-pypi, build-windows-exe, build-linux-exe, build-macos-exe, build-debian, create-winget-manifest]
|
needs: [prepare, build-pypi, build-windows-exe, build-linux-exe, build-macos-exe, create-winget-manifest]
|
||||||
if: needs.prepare.outputs.is_release == 'true'
|
if: needs.prepare.outputs.is_release == 'true'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue