From ebdc033c59d39405ee1d6c2b31afe8fb1b2c61bc Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Dec 2025 09:48:20 +0900 Subject: [PATCH] Bundle Lib directory in GitHub releases (#6497) * Initial plan * Add Lib directory archives to release workflow Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> * Add release notes explaining users need both binary and Lib archive Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> * Remove unnecessary --notes-start-tag parameter Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> * Only create zip archive, remove tar.gz Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3efff295c..5ad2cf3f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,6 +144,8 @@ jobs: if: ${{ github.repository == 'RustPython/RustPython' || github.event_name != 'schedule' }} needs: [build, build-wasm] steps: + - uses: actions/checkout@v6.0.1 + - name: Download Binary Artifacts uses: actions/download-artifact@v7.0.0 with: @@ -151,6 +153,10 @@ jobs: pattern: rustpython-* merge-multiple: true + - name: Create Lib Archive + run: | + zip -r bin/rustpython-lib.zip Lib/ + - name: List Binaries run: | ls -lah bin/ @@ -174,6 +180,7 @@ jobs: --repo="$GITHUB_REPOSITORY" \ --title="RustPython $RELEASE_TYPE_NAME $today-$tag #$run" \ --target="$tag" \ + --notes "⚠️ **Important**: To run RustPython, you must download both the binary for your platform AND the \`rustpython-lib.zip\` archive. Extract the Lib directory from the archive to the same location as the binary, or set the \`RUSTPYTHONPATH\` environment variable to point to the Lib directory." \ --generate-notes \ $PRERELEASE_ARG \ bin/rustpython-release-*