From 87da04c9a164e5b2170301e302468b98c2455e9a Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Sun, 24 Jul 2022 16:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88appimage,=E6=94=B9=E7=94=A8ta?= =?UTF-8?q?r=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-pr.yml | 13 +++---------- .github/workflows/build.yml | 15 ++++----------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index aa159f0..ea3149a 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -128,26 +128,19 @@ jobs: - name: Build pypvz with Nuitka run: | yes | python -m nuitka --standalone \ - --onefile \ --show-progress \ --show-memory \ --output-dir=out \ --linux-onefile-icon=pypvz.ico \ --include-data-dir=resources=resources \ - -o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.appimage \ + -o ./out/pypvz \ main.py - - # artifact压缩包处上传包含运行环境的文件夹 - - name: "Upload binaries" - uses: actions/upload-artifact@v2 - with: - name: artifact-linux-python-${{ matrix.python_version }} - path: ./out/*.dist + tar -cvpaf -C ./out out pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst - name: Release the version built by nuitka uses: ncipollo/release-action@v1 with: allowUpdates: true tag: Latest - artifacts: ./out/*nuitka*.appimage + artifacts: ./*.tar.zst token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e220fa..edc91e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,7 +116,7 @@ jobs: - name: 🧳 Install dependencies run: | 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 nuitka python -m pip install --no-python-version-warning --disable-pip-version-check pygame @@ -130,26 +130,19 @@ jobs: - name: Build pypvz with Nuitka run: | yes | python -m nuitka --standalone \ - --onefile \ --show-progress \ --show-memory \ --output-dir=out \ --linux-onefile-icon=pypvz.ico \ --include-data-dir=resources=resources \ - -o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.appimage \ + -o ./out/pypvz \ main.py - - # artifact压缩包处上传包含运行环境的文件夹 - - name: "Upload binaries" - uses: actions/upload-artifact@v2 - with: - name: artifact-linux-python-${{ matrix.python_version }} - path: ./out/*.dist + tar -cvpaf -C ./out out pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst - name: Release the version built by nuitka uses: ncipollo/release-action@v1 with: allowUpdates: true tag: Latest - artifacts: ./out/*nuitka*.appimage + artifacts: ./*.tar.zst token: ${{ secrets.GITHUB_TOKEN }}