取消Linux构建
This commit is contained in:
parent
4671f2ffa0
commit
a0edb3caef
100
.github/workflows/build-pr.yml
vendored
100
.github/workflows/build-pr.yml
vendored
@ -92,58 +92,58 @@ 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 }}
|
# name: Ubuntu Python ${{ matrix.python_version }}
|
||||||
steps:
|
# steps:
|
||||||
- name: 🛎️ Checkout
|
# - name: 🛎️ Checkout
|
||||||
uses: actions/checkout@v2
|
# uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# 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
|
||||||
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 \
|
# --show-progress \
|
||||||
--follow-imports \
|
# --follow-imports \
|
||||||
--show-memory \
|
# --show-memory \
|
||||||
--output-dir=out \
|
# --output-dir=out \
|
||||||
--linux-onefile-icon=pypvz.ico \
|
# --linux-onefile-icon=pypvz.ico \
|
||||||
-o ./out/pypvz \
|
# -o ./out/pypvz \
|
||||||
--remove-output \
|
# --remove-output \
|
||||||
main.py
|
# main.py
|
||||||
cp -r ./resources ./out/resources
|
# cp -r ./resources ./out/resources
|
||||||
cd out
|
# cd out
|
||||||
tar -cvpaf ../pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst .
|
# 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: ./*.tar.zst
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
100
.github/workflows/build.yml
vendored
100
.github/workflows/build.yml
vendored
@ -94,58 +94,58 @@ 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 }}
|
# name: Ubuntu Python ${{ matrix.python_version }}
|
||||||
steps:
|
# steps:
|
||||||
- name: 🛎️ Checkout
|
# - name: 🛎️ Checkout
|
||||||
uses: actions/checkout@v2
|
# uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# 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 \
|
# --show-progress \
|
||||||
--follow-imports \
|
# --follow-imports \
|
||||||
--show-memory \
|
# --show-memory \
|
||||||
--output-dir=out \
|
# --output-dir=out \
|
||||||
--linux-onefile-icon=pypvz.ico \
|
# --linux-onefile-icon=pypvz.ico \
|
||||||
-o ./out/pypvz \
|
# -o ./out/pypvz \
|
||||||
--remove-output \
|
# --remove-output \
|
||||||
main.py
|
# main.py
|
||||||
cp -r ./resources ./out/resources
|
# cp -r ./resources ./out/resources
|
||||||
cd out
|
# cd out
|
||||||
tar -cvpaf ../pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst .
|
# 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: ./*.tar.zst
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user