恢复Linux单文件版构建
This commit is contained in:
parent
17de44a773
commit
fd9253d410
96
.github/workflows/build-pr.yml
vendored
96
.github/workflows/build-pr.yml
vendored
@ -90,56 +90,56 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
#linux:
|
linux:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# strategy:
|
strategy:
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
# matrix:
|
matrix:
|
||||||
# python_version:
|
python_version:
|
||||||
# - "3.10"
|
- "3.10"
|
||||||
# name: Ubuntu Python ${{ matrix.python_version }}
|
- "3.11"
|
||||||
# steps:
|
name: Ubuntu Python ${{ matrix.python_version }}
|
||||||
# - name: 🛎️ Checkout
|
steps:
|
||||||
# uses: actions/checkout@v2
|
- name: 🛎️ Checkout
|
||||||
# with:
|
uses: actions/checkout@v2
|
||||||
# fetch-depth: 0
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
# - name: 🐍 Use Python ${{ matrix.python_version }}
|
- name: 🐍 Use Python ${{ matrix.python_version }}
|
||||||
# uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
# with:
|
with:
|
||||||
# python-version: ${{ matrix.python_version }}
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
# - name: 🧳 Install dependencies
|
- name: 🧳 Install dependencies
|
||||||
# run: |
|
run: |
|
||||||
# sudo apt-get update
|
sudo apt-get update
|
||||||
# sudo apt-get install patchelf gdb ccache libfuse2
|
sudo apt-get install patchelf gdb ccache libfuse2 zstd tar
|
||||||
# python -m pip install --no-python-version-warning --disable-pip-version-check zstandard appdirs ordered-set tqdm Jinja2
|
python -m pip install --no-python-version-warning --disable-pip-version-check zstandard appdirs ordered-set tqdm Jinja2
|
||||||
# python -m pip install --no-python-version-warning --disable-pip-version-check nuitka
|
python -m pip install --no-python-version-warning --disable-pip-version-check nuitka
|
||||||
# python -m pip install --no-python-version-warning --disable-pip-version-check pygame
|
python -m pip install --no-python-version-warning --disable-pip-version-check pygame
|
||||||
|
|
||||||
# # 使用Nuitka构建
|
# 使用Nuitka构建
|
||||||
# - name: Show nuitka version
|
- name: Show nuitka version
|
||||||
# run: |
|
run: |
|
||||||
# env
|
env
|
||||||
# python -m nuitka --version
|
python -m nuitka --version
|
||||||
|
|
||||||
# - name: Build pypvz with Nuitka
|
- name: Build pypvz with Nuitka
|
||||||
# run: |
|
run: |
|
||||||
# yes | python -m nuitka \
|
yes | python -m nuitka \
|
||||||
# --show-progress \
|
--onefile \
|
||||||
# --follow-imports \
|
--standalone \
|
||||||
# --show-memory \
|
--include-data-dir=resources=resources \
|
||||||
# --output-dir=out \
|
--linux-onefile-icon=pypvz.png \
|
||||||
# --linux-onefile-icon=pypvz.ico \
|
--static-libpython=no \
|
||||||
# -o ./out/pypvz \
|
--remove-output \
|
||||||
# --remove-output \
|
-o pypvz-with-python${{ matrix.python_version }}-linux-x86_64.bin \
|
||||||
# main.py
|
pypvz.py
|
||||||
# cp -r ./resources ./out/resources
|
|
||||||
# cd out
|
|
||||||
# tar -cvpaf ../pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst .
|
|
||||||
|
|
||||||
# - name: "Upload binaries"
|
- name: Release the version built by nuitka
|
||||||
# uses: actions/upload-artifact@v2
|
uses: ncipollo/release-action@v1
|
||||||
# with:
|
with:
|
||||||
# name: artifact-windows-python-${{ matrix.python_version }}
|
allowUpdates: true
|
||||||
# path: ./pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst
|
tag: Dev
|
||||||
|
artifacts: ./pypvz*-x86_64.*
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
104
.github/workflows/build.yml
vendored
104
.github/workflows/build.yml
vendored
@ -80,12 +80,6 @@ jobs:
|
|||||||
-o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-windows-x64.exe `
|
-o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-windows-x64.exe `
|
||||||
pypvz.py
|
pypvz.py
|
||||||
|
|
||||||
# artifact压缩包处上传包含exe和运行环境的文件夹
|
|
||||||
- name: "Upload binaries"
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: artifact-windows-python-${{ matrix.python_version }}
|
|
||||||
path: ./out/*.dist
|
|
||||||
|
|
||||||
- name: Release the version built by nuitka
|
- name: Release the version built by nuitka
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
@ -95,58 +89,56 @@ jobs:
|
|||||||
artifacts: ./out/*nuitka*.exe
|
artifacts: ./out/*nuitka*.exe
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
#linux:
|
linux:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# strategy:
|
strategy:
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
# matrix:
|
matrix:
|
||||||
# python_version:
|
python_version:
|
||||||
# - "3.10"
|
- "3.10"
|
||||||
# name: Ubuntu Python ${{ matrix.python_version }}
|
- "3.11"
|
||||||
# steps:
|
name: Ubuntu Python ${{ matrix.python_version }}
|
||||||
# - name: 🛎️ Checkout
|
steps:
|
||||||
# uses: actions/checkout@v2
|
- name: 🛎️ Checkout
|
||||||
# with:
|
uses: actions/checkout@v2
|
||||||
# fetch-depth: 0
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
# - name: 🐍 Use Python ${{ matrix.python_version }}
|
- name: 🐍 Use Python ${{ matrix.python_version }}
|
||||||
# uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
# with:
|
with:
|
||||||
# python-version: ${{ matrix.python_version }}
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
# - name: 🧳 Install dependencies
|
- name: 🧳 Install dependencies
|
||||||
# run: |
|
run: |
|
||||||
# sudo apt-get update
|
sudo apt-get update
|
||||||
# sudo apt-get install patchelf gdb ccache libfuse2 zstd tar
|
sudo apt-get install patchelf gdb ccache libfuse2 zstd tar
|
||||||
# python -m pip install --no-python-version-warning --disable-pip-version-check zstandard appdirs ordered-set tqdm Jinja2
|
python -m pip install --no-python-version-warning --disable-pip-version-check zstandard appdirs ordered-set tqdm Jinja2
|
||||||
# python -m pip install --no-python-version-warning --disable-pip-version-check nuitka
|
python -m pip install --no-python-version-warning --disable-pip-version-check nuitka
|
||||||
# python -m pip install --no-python-version-warning --disable-pip-version-check pygame
|
python -m pip install --no-python-version-warning --disable-pip-version-check pygame
|
||||||
|
|
||||||
# # 使用Nuitka构建
|
# 使用Nuitka构建
|
||||||
# - name: Show nuitka version
|
- name: Show nuitka version
|
||||||
# run: |
|
run: |
|
||||||
# env
|
env
|
||||||
# python -m nuitka --version
|
python -m nuitka --version
|
||||||
|
|
||||||
# - name: Build pypvz with Nuitka
|
- name: Build pypvz with Nuitka
|
||||||
# run: |
|
run: |
|
||||||
# yes | python -m nuitka \
|
yes | python -m nuitka \
|
||||||
# --show-progress \
|
--onefile \
|
||||||
# --follow-imports \
|
--standalone \
|
||||||
# --show-memory \
|
--include-data-dir=resources=resources \
|
||||||
# --output-dir=out \
|
--linux-onefile-icon=pypvz.png \
|
||||||
# --linux-onefile-icon=pypvz.ico \
|
--static-libpython=no \
|
||||||
# -o ./out/pypvz \
|
--remove-output \
|
||||||
# --remove-output \
|
-o pypvz-with-python${{ matrix.python_version }}-linux-x86_64.bin \
|
||||||
# main.py
|
pypvz.py
|
||||||
# cp -r ./resources ./out/resources
|
|
||||||
# cd out
|
|
||||||
# tar -cvpaf ../pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst .
|
|
||||||
|
|
||||||
# - name: Release the version built by nuitka
|
- name: Release the version built by nuitka
|
||||||
# uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
# with:
|
with:
|
||||||
# allowUpdates: true
|
allowUpdates: true
|
||||||
# tag: Latest
|
tag: Latest
|
||||||
# artifacts: ./*.tar.zst
|
artifacts: ./pypvz*-x86_64.*
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user