-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into nv12-support
- Loading branch information
Showing
393 changed files
with
19,244 additions
and
4,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
*.zip -text diff | ||
**/source_hash.txt linguist-generated=true | ||
Cargo.lock linguist-generated=true | ||
pixi.lock linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,6 @@ inputs: | |
required: true | ||
|
||
runs: | ||
using: "node18" | ||
using: "node20" | ||
main: "index.mjs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.RERUN_BOT_TOKEN }} | ||
|
||
- name: Set up Python | ||
|
@@ -58,7 +59,13 @@ jobs: | |
|
||
- name: Install deps | ||
run: | | ||
python3 -m pip install -r ./scripts/ci/requirements.txt | ||
python3 -m pip install -r ./scripts/ci/requirements-crates.txt | ||
# for `taplo fmt` done in `crates.py version --bump` | ||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: taplo-cli | ||
|
||
- name: Update crate versions | ||
id: versioning | ||
|
@@ -112,6 +119,44 @@ jobs: | |
git push | ||
echo "version_bump_commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | ||
- name: Create pull request | ||
env: | ||
GH_TOKEN: ${{ secrets.RERUN_BOT_TOKEN }} | ||
run: | | ||
set +e | ||
pr=$(gh pr view --json headRefName 2>/dev/null || echo "{}") | ||
if echo "$pr" | jq '. | has("headRefName")' | grep -q 'true'; then | ||
echo "PR already exists" | ||
exit 0 | ||
fi | ||
set -e | ||
echo "PR does not exist, creating…" | ||
cat <<EOF > pr-body.txt | ||
### Next steps | ||
- Test the release | ||
- If this is an `alpha` release, you can just merge the pull request. | ||
- Otherwise: | ||
- For any added commits, run the release workflow in `rc` mode again | ||
- After testing, run the release workflow in `release` mode | ||
- Once the final release workflow finishes, [create a GitHub release](https://github.com/rerun-io/rerun/releases/new) | ||
- [ ] Tests | ||
- [ ] Windows | ||
- [ ] Linux | ||
- [ ] MacOS | ||
EOF | ||
gh pr create \ | ||
--base main \ | ||
--head $(git branch --show-current) \ | ||
--title "Release ${{ (inputs.release-type == 'alpha' && steps.versioning.outputs.current) || steps.versioning.outputs.final }}" \ | ||
--label "⛴ release" \ | ||
--label "exclude from changelog" \ | ||
--fill \ | ||
--body-file pr-body.txt | ||
update-docs: | ||
name: "Update Docs" | ||
needs: [version] | ||
|
@@ -176,40 +221,92 @@ jobs: | |
git push --force origin ${{ github.ref_name }}:latest | ||
post-release-version-bump: | ||
name: "Post-release Version Bump" | ||
if: inputs.release-type == 'final' | ||
name: "Post-Release Version Bump" | ||
if: inputs.release-type == 'alpha' || inputs.release-type == 'final' | ||
needs: [version, update-docs, publish-crates, build-and-publish-wheels, build-and-publish-web] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
token: ${{ secrets.RERUN_BOT_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install -r scripts/ci/requirements.txt | ||
python3 -m pip install -r scripts/ci/requirements-crates.txt | ||
# for `taplo fmt` done in `crates.py version --bump` | ||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: taplo-cli | ||
|
||
# After a release, we bump the minor version and append `+dev`. | ||
- name: Update version | ||
id: update-version | ||
run: | | ||
python3 scripts/ci/crates.py version --bump minor --dev | ||
echo "version=$(python3 scripts/ci/crates.py get-version)" >> "$GITHUB_OUTPUT" | ||
if [ ${{ inputs.release-type }} = "final" ]; then | ||
# After a final release, we bump the minor version and append `+dev`. | ||
python3 scripts/ci/crates.py version --bump prerelease --dev --pre-id=alpha | ||
echo "version=$(python3 scripts/ci/crates.py get-version)" >> "$GITHUB_OUTPUT" | ||
else | ||
# After an alpha release, we bump the prerelease version and append `+dev`. | ||
python3 scripts/ci/crates.py version --bump minor | ||
python3 scripts/ci/crates.py version --bump prerelease --dev --pre-id=alpha | ||
echo "version=$(python3 scripts/ci/crates.py get-version)" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Create pull request | ||
uses: peter-evans/[email protected] | ||
- name: Commit new version | ||
run: | | ||
git config --global user.name "rerun-bot" | ||
git config --global user.email "[email protected]" | ||
git commit -am "Bump versions to ${{ steps.update-version.outputs.version }}" | ||
git push | ||
comment-artifact-links: | ||
name: "Link to artifacts" | ||
needs: [version, update-docs, publish-crates, build-and-publish-wheels, build-and-publish-web] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.RERUN_BOT_TOKEN }} | ||
base: main | ||
branch: "post-${{ github.ref_name }}" | ||
commit-message: "bump versions to ${{ steps.update-version.outputs.version }}" | ||
title: "Post-release ${{ needs.version.outputs.final }}" | ||
labels: "⛴ release" | ||
committer: "Rerun Bot <[email protected]>" | ||
author: "Rerun Bot <[email protected]>" | ||
body: | | ||
### What | ||
- [x] Bump all crate versions to `${{ steps.update-version.outputs.version }}` | ||
|
||
- name: Create comment | ||
env: | ||
GH_TOKEN: ${{ secrets.RERUN_BOT_TOKEN }} | ||
run: | | ||
pr_number=$(gh pr view --json number | jq '.number') | ||
if [ ${{ inputs.release-type }} = "final" ]; then | ||
web_app_link="https://app.rerun.io/version/${{ needs.version.outputs.final }}" | ||
rerun_io_docs_link="https://rerun.io/docs" | ||
py_docs_link="https://ref.rerun.io/docs/python/${{ needs.version.outputs.final }}" | ||
else | ||
web_app_link="https://app.rerun.io/commit/${{ needs.version.outputs.release-commit }}" | ||
rerun_io_docs_link="https://rerun.io/preview/${{ needs.version.outputs.release-commit }}/docs" | ||
py_docs_link="https://ref.rerun.io/docs/python/dev" | ||
fi | ||
wheels_link="https://pypi.org/project/rerun-sdk/${{ needs.version.outputs.current }}" | ||
crates_link="https://crates.io/crates/rerun/${{ needs.version.outputs.current }}" | ||
rs_docs_link="https://docs.rs/rerun/${{ needs.version.outputs.current }}" | ||
pip_install="pip install rerun-sdk==${{ needs.version.outputs.current }}" | ||
cargo_install="cargo install rerun-cli@${{ needs.version.outputs.current }}" | ||
cat <<EOF > comment-body.txt | ||
Version ${{ needs.version.outputs.current }} published sucessfully. | ||
| artifact | install | | ||
| --------------------------- | -------------- | | ||
| [web app]($web_app_link) | | | ||
| [wheels]($wheels_link) | $pip_install | | ||
| [crates]($crates_link) | $cargo_install | | ||
| [docs]($rerun_io_docs_link) | | | ||
| [py docs]($py_docs_link) | | | ||
| [rs docs]($rs_docs_link) | | | ||
EOF | ||
gh pr comment $pr_number --body-file comment-body.txt --edit-last | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.