降低python版本依赖

This commit is contained in:
2024-10-03 02:07:14 +08:00
parent 5f33564d3f
commit 62903a6680
5 changed files with 180 additions and 16 deletions

View File

@ -2,14 +2,14 @@ name: Compile
on:
push:
branches:
- main
tags:
- '*'
jobs:
build:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
os: [ ubuntu-latest, windows-latest ]
arch: [ amd64, arm64, arm, 386 ]
runs-on: ${{ matrix.os }}
@ -22,10 +22,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
architecture: ${{ matrix.arch }}
cache: 'pdm' # Optional. Options are 'none', 'pdm', 'pip', or 'all'. Default is 'all'
- name: Install Dependencies
run: |
@ -36,8 +34,10 @@ jobs:
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: server_status/__main__.py
script-name: server_status/main.py
onefile: true
standalone: true
follow-imports: true
- name: Upload Artifacts
uses: actions/upload-artifact@v3