XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Update build-packages.yml

2a4bd701
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +32 -32
Modified .github/workflows/build-packages.yml +32 -32
@@ -255,37 +255,37 @@ jobs:
255 255 G4F_VERSION=${{ needs.prepare.outputs.version }}
256 256
257 257 # Debian Packages
258 build-debian:
259 runs-on: ubuntu-latest
260 needs: prepare
261 strategy:
262 matrix:
263 architecture: [amd64, arm64, armhf]
264 steps:
265 - uses: actions/checkout@v4
266 - name: Set up Python
267 uses: actions/setup-python@v5
268 with:
269 python-version: "3.x"
270 - name: Install build dependencies
271 run: |
272 sudo apt-get update
273 sudo apt-get install -y dpkg-dev build-essential python3-setuptools
274 python3 -m pip install --upgrade pip
275 pip3 install -r requirements-min.txt
276 pip3 install -e .
277 - name: Build Debian package
278 env:
279 G4F_VERSION: ${{ needs.prepare.outputs.version }}
280 ARCH: ${{ matrix.architecture }}
281 run: |
282 chmod +x scripts/build-deb.sh
283 ./scripts/build-deb.sh
284 - name: Upload Debian package
285 uses: actions/upload-artifact@v4
286 with:
287 name: debian-${{ matrix.architecture }}
288 path: g4f-*-${{ matrix.architecture }}.deb
258 # build-debian:
259 # runs-on: ubuntu-latest
260 # needs: prepare
261 # strategy:
262 # matrix:
263 # architecture: [amd64, arm64, armhf]
264 # steps:
265 # - uses: actions/checkout@v4
266 # - name: Set up Python
267 # uses: actions/setup-python@v5
268 # with:
269 # python-version: "3.x"
270 # - name: Install build dependencies
271 # run: |
272 # sudo apt-get update
273 # sudo apt-get install -y dpkg-dev build-essential python3-setuptools
274 # python3 -m pip install --upgrade pip
275 # pip3 install -r requirements-min.txt
276 # pip3 install -e .
277 # - name: Build Debian package
278 # env:
279 # G4F_VERSION: ${{ needs.prepare.outputs.version }}
280 # ARCH: ${{ matrix.architecture }}
281 # run: |
282 # chmod +x scripts/build-deb.sh
283 # ./scripts/build-deb.sh
284 # - name: Upload Debian package
285 # uses: actions/upload-artifact@v4
286 # with:
287 # name: debian-${{ matrix.architecture }}
288 # path: g4f-*-${{ matrix.architecture }}.deb
289 289
290 290 # WinGet Package Manifest
291 291 create-winget-manifest:
@@ -367,7 +367,7 @@ jobs:
367 367 # Release Creation
368 368 create-release:
369 369 runs-on: ubuntu-latest
370 needs: [prepare, build-pypi, build-windows-exe, build-linux-exe, build-macos-exe, build-debian, create-winget-manifest]
370 needs: [prepare, build-pypi, build-windows-exe, build-linux-exe, build-macos-exe, create-winget-manifest]
371 371 if: needs.prepare.outputs.is_release == 'true'
372 372 permissions:
373 373 contents: write