-
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 branch 'cmc/sdk_revamp/2_rust_revamp' into cmc/sdk_revamp/22_ba…
…tching_estimated_size_hell
- Loading branch information
Showing
44 changed files
with
533 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Release a branch or target with the given version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
RELEASE_VERSION: | ||
description: 'Release Version Number (Must match Cargo.toml)' | ||
type: string | ||
required: true | ||
OVERRIDE_COMMIT: | ||
description: 'Commit to release' | ||
type: string | ||
required: false | ||
|
||
jobs: | ||
publish-wheels: | ||
name: 'Publish Wheels' | ||
|
||
permissions: | ||
contents: write | ||
id-token: "write" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Don't do a shallow clone since we need it for finding the full commit hash | ||
|
||
- name: Add SHORT_SHA env property with commit short sha | ||
run: | | ||
if [ -z "${{ inputs.OVERRIDE_COMMIT }}" ]; then | ||
USED_SHA=${{ github.sha }} | ||
else | ||
USED_SHA=${{ inputs.OVERRIDE_COMMIT }} | ||
fi | ||
echo "SHORT_SHA=$(echo $USED_SHA | cut -c1-7)" >> $GITHUB_ENV | ||
- name: Expand short hash to FULL_SHA hash | ||
run: | | ||
FULL_SHA=$(git rev-parse ${{ env.SHORT_SHA }}) | ||
echo "FULL_SHA=$FULL_SHA" >> $GITHUB_ENV | ||
- id: "auth" | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} | ||
|
||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v1' | ||
with: | ||
version: '>= 363.0.0' | ||
|
||
- name: Install packaging | ||
run: | | ||
python3 -m pip install packaging google-cloud-storage | ||
- name: Download wheels from Google Cloud Storage | ||
env: | ||
BUCKET_PATH: | ||
run: | | ||
mkdir wheels | ||
gsutil cp "gs://rerun-builds/commit/${{ env.SHORT_SHA }}/wheels/*.whl" wheels/ | ||
- name: Verify wheels match the expected release | ||
run: | | ||
python3 scripts/verify_wheels.py --folder wheels --version ${{ inputs.RELEASE_VERSION }} | ||
- name: Publish to PyPI | ||
uses: PyO3/maturin-action@v1 | ||
env: | ||
# These are both set in the GitHub project configuration | ||
MATURIN_REPOSITORY: ${{ vars.PYPI_REPOSITORY }} | ||
MATURIN_PYPI_TOKEN: ${{ secrets.MATURIN_PYPI_TOKEN }} | ||
with: | ||
command: upload | ||
args: --skip-existing wheels/* | ||
|
||
# Create the actual prerelease | ||
# https://github.com/ncipollo/release-action | ||
- name: GitHub Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: "Release - ${{ inputs.RELEASE_VERSION }}" | ||
commit: ${{ env.FULL_SHA }} | ||
tag: ${{ inputs.RELEASE_VERSION }} | ||
artifacts: "wheels/*.whl" | ||
generateReleaseNotes: true | ||
allowUpdates: true | ||
draft: 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,15 @@ This is a guide to how to build Rerun. | |
* Install the Rust toolchain: <https://rustup.rs/> | ||
* `git clone [email protected]:rerun-io/rerun.git && cd rerun` | ||
* Run `./scripts/setup_dev.sh`. | ||
* Make sure `cargo --version` prints `1.67.1` once you are done | ||
* Make sure `cargo --version` prints `1.69.0` once you are done | ||
|
||
|
||
### Apple-silicon Macs | ||
|
||
If you are using an Apple-silicon Mac (M1, M2), make sure `rustc -vV` outputs `host: aarch64-apple-darwin`. If not, this should fix it: | ||
|
||
```sh | ||
rustup set default-host aarch64-apple-darwin && rustup install 1.67.1 | ||
rustup set default-host aarch64-apple-darwin && rustup install 1.69.0 | ||
``` | ||
|
||
## Building the docs | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.