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 }}