feat: more python version
This commit is contained in:
parent
57bc1090cc
commit
d354611a06
20
.github/workflows/nuitka.yml
vendored
20
.github/workflows/nuitka.yml
vendored
@ -19,6 +19,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
python-version: ["3.8", "3.10", "3.11"]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -38,19 +39,21 @@ jobs:
|
|||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
id: get_short_sha_powershell
|
id: get_short_sha_powershell
|
||||||
run: |
|
run: |
|
||||||
$short_sha = echo ${GITHUB_SHA
|
$short_sha = echo $`{GITHUB_SHA`}
|
||||||
$short_sha = $short_sha.substring(1,7)
|
$short_sha = $short_sha.substring(1,7)
|
||||||
Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
# 安装 Python
|
# 安装 Python
|
||||||
- name: Setup Python
|
- name: Setup Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8' # 为了支持 win7 我还是得用 3.8
|
python-version: ${{ matrix.python-version }} # 为了支持 win7 我还是得用 3.8
|
||||||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: '**/requirement*.txt'
|
cache-dependency-path: '**/requirement*.txt'
|
||||||
|
- name: Display Python version
|
||||||
|
run: python -c "import sys; print(sys.version)"
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
- name: Install env
|
- name: Install env
|
||||||
@ -58,17 +61,6 @@ jobs:
|
|||||||
pip install -r requirement.txt
|
pip install -r requirement.txt
|
||||||
pip install nuitka orderedset
|
pip install nuitka orderedset
|
||||||
|
|
||||||
|
|
||||||
# # Build python script into a stand-alone exe
|
|
||||||
# - name: Build
|
|
||||||
# uses: Nuitka/Nuitka-Action@v0.4
|
|
||||||
# with:
|
|
||||||
# script-name: DR.py
|
|
||||||
# standalone: true
|
|
||||||
# onefile: false
|
|
||||||
## include-package-data: './configs=./configs'
|
|
||||||
# assume-yes-for-download: true
|
|
||||||
|
|
||||||
# 还是得我自己写脚本
|
# 还是得我自己写脚本
|
||||||
- name: Build on Windows
|
- name: Build on Windows
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
|
Loading…
Reference in New Issue
Block a user