Skip to content

Commit ebdc033

Browse files
Copilotyouknowone
andauthored
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>
1 parent 7ebb0f0 commit ebdc033

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,19 @@ jobs:
144144
if: ${{ github.repository == 'RustPython/RustPython' || github.event_name != 'schedule' }}
145145
needs: [build, build-wasm]
146146
steps:
147+
- uses: actions/checkout@v6.0.1
148+
147149
- name: Download Binary Artifacts
148150
uses: actions/download-artifact@v7.0.0
149151
with:
150152
path: bin
151153
pattern: rustpython-*
152154
merge-multiple: true
153155

156+
- name: Create Lib Archive
157+
run: |
158+
zip -r bin/rustpython-lib.zip Lib/
159+
154160
- name: List Binaries
155161
run: |
156162
ls -lah bin/
@@ -174,6 +180,7 @@ jobs:
174180
--repo="$GITHUB_REPOSITORY" \
175181
--title="RustPython $RELEASE_TYPE_NAME $today-$tag #$run" \
176182
--target="$tag" \
183+
--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." \
177184
--generate-notes \
178185
$PRERELEASE_ARG \
179186
bin/rustpython-release-*

0 commit comments

Comments
 (0)