Skip to content

Commit

Permalink
Publish rerun_notebook in CI (rerun-io#6641)
Browse files Browse the repository at this point in the history
### What

This PR adds support for publishing `rerun_notebook` in CI. It also
bumps all the versions as a result of running/merging alphas off this
branch.

Wheel index for alpha.8:
https://storage.googleapis.com/rerun-builds/commit/a6a666f/wheels/index.html

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6641?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6641?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/6641)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.

---------

Co-authored-by: rerun-bot <[email protected]>
Co-authored-by: Jan Procházka <[email protected]>
Co-authored-by: Jeremy Leibs <[email protected]>
  • Loading branch information
4 people authored Jun 28, 2024
1 parent 09750d2 commit f29f519
Show file tree
Hide file tree
Showing 34 changed files with 1,571 additions and 536 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,18 @@ jobs:
final=$(pixi run python scripts/ci/crates.py get-version --finalize)
echo Output everything for use in other steps…
echo "previous=$previous"
echo "current=$current"
echo "final=$final"
echo "previous=$previous" >> "$GITHUB_OUTPUT"
echo "current=$current" >> "$GITHUB_OUTPUT"
echo "final=$final" >> "$GITHUB_OUTPUT"
- name: Update rerun_notebook package version
run: |
pixi run python scripts/ci/update_rerun_notebook_version.py "${{ steps.versioning.outputs.current }}"
- name: Update JS package versions
run: |
pixi run node rerun_js/scripts/version.mjs "${{ steps.versioning.outputs.current }}"
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/reusable_build_and_upload_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,22 @@ jobs:
with:
name: ${{inputs.WHEEL_ARTIFACT_NAME}}
path: dist/${{ needs.set-config.outputs.TARGET }}

# ---------------------------------------------------------------------------
# rerun_notebook support

- name: "Build rerun_notebook"
# only build the notebook if we are building for pypi and running linux-x64
if: ${{ inputs.MODE == 'pypi' && inputs.PLATFORM == 'linux-x64' }}
run: |
rm -rf dist
pixi run js-build-base
pixi run python scripts/ci/build_and_upload_rerun_notebook.py \
--dir commit/${{ steps.get-sha.outputs.sha }}/wheels
- name: Save rerun_notebook wheel artifact
if: ${{ inputs.MODE == 'pypi' && inputs.PLATFORM == 'linux-x64' }}
uses: actions/upload-artifact@v4
with:
name: rerun_notebook_wheel
path: dist
1 change: 1 addition & 0 deletions .github/workflows/reusable_publish_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:

## Build

# Note: this also builds `rerun_notebook`
build-linux-x64:
name: "Linux-x64: Build Wheels"
needs: [get-commit-sha]
Expand Down
Loading

0 comments on commit f29f519

Please sign in to comment.