forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What - [x] Rename existing `nightly` to `main` - [x] Add nightly build which runs once per day - [x] Build all examples in nightly build - [x] Build only quick examples in `main` build ### 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): * Full build: [app.rerun.io](https://app.rerun.io/pr/4505/index.html) * Partial build: [app.rerun.io](https://app.rerun.io/pr/4505/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) - Useful for quick testing when changes do not affect examples in any way * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4505) - [Docs preview](https://rerun.io/preview/0d1b795a25d0dc88d35f215e37bf84e6caf2b3cf/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/0d1b795a25d0dc88d35f215e37bf84e6caf2b3cf/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) --------- Co-authored-by: Emil Ernerfeldt <[email protected]>
- Loading branch information
Showing
46 changed files
with
703 additions
and
597 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Nightly | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | ||
# 12:15 UTC, every day | ||
- cron: "15 12 * * *" | ||
|
||
jobs: | ||
build-web: | ||
name: "Build Web" | ||
uses: ./.github/workflows/reusable_build_web.yml | ||
with: | ||
CONCURRENCY: nightly | ||
CHANNEL: nightly | ||
secrets: inherit | ||
|
||
upload-web: | ||
name: "Upload Web" | ||
needs: [build-web] | ||
uses: ./.github/workflows/reusable_upload_web.yml | ||
with: | ||
CONCURRENCY: nightly | ||
NIGHTLY: true | ||
secrets: inherit | ||
|
||
build-wheel-linux: | ||
name: "Build & Upload Wheels" | ||
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml | ||
with: | ||
CONCURRENCY: nightly-linux | ||
PLATFORM: linux | ||
WHEEL_ARTIFACT_NAME: linux-wheel | ||
MODE: "pr" | ||
secrets: inherit | ||
|
||
build-examples: | ||
name: "Build Examples" | ||
needs: [build-wheel-linux] | ||
uses: ./.github/workflows/reusable_build_examples.yml | ||
with: | ||
CONCURRENCY: nightly | ||
CHANNEL: nightly | ||
WHEEL_ARTIFACT_NAME: linux-wheel | ||
secrets: inherit | ||
|
||
upload-examples: | ||
name: "Upload Examples" | ||
needs: [build-examples] | ||
uses: ./.github/workflows/reusable_upload_examples.yml | ||
with: | ||
CONCURRENCY: nightly | ||
NIGHTLY: true | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -9,13 +9,15 @@ on: | |
WHEEL_ARTIFACT_NAME: | ||
required: true | ||
type: string | ||
CHANNEL: # `nightly` or `main` | ||
required: true | ||
type: string | ||
|
||
concurrency: | ||
group: ${{ inputs.CONCURRENCY }}-build-examples | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHON_VERSION: "3.8" | ||
# web_sys_unstable_apis is required to enable the web_sys clipboard API which egui_web uses | ||
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html | ||
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html | ||
|
@@ -33,9 +35,6 @@ jobs: | |
|
||
runs-on: ubuntu-latest-16-cores | ||
|
||
container: | ||
image: rerunio/ci_docker:0.11.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -49,20 +48,26 @@ jobs: | |
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.6.0 | ||
|
||
- name: Download Wheel | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ inputs.WHEEL_ARTIFACT_NAME }} | ||
path: wheel | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.6.0 | ||
- name: Install example dependencies | ||
shell: bash | ||
run: | | ||
pixi run pip install \ | ||
-r scripts/ci/requirements-examples-${{ inputs.CHANNEL }}.txt \ | ||
--no-input | ||
- name: Install Python dependencies and wheel | ||
shell: bash | ||
run: | | ||
pixi run pip install -r scripts/ci/requirements-web-demo.txt | ||
pixi run pip uninstall rerun-sdk -y | ||
pixi run pip install deprecated numpy>=1.23 pyarrow==10.0.1 pytest==7.1.2 | ||
pixi run pip install rerun-sdk --no-index --find-links wheel | ||
|
@@ -84,7 +89,9 @@ jobs: | |
- name: Build examples | ||
shell: bash | ||
run: | | ||
pixi run build-examples example_data | ||
pixi run build-examples rrd \ | ||
--channel ${{ inputs.CHANNEL }} \ | ||
example_data | ||
- name: Upload assets | ||
uses: actions/upload-artifact@v3 | ||
|
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 |
---|---|---|
|
@@ -10,10 +10,9 @@ on: | |
required: false | ||
type: string | ||
default: "prerelease" | ||
EXTRA_FLAGS: | ||
required: false | ||
CHANNEL: # `nightly` or `main` | ||
required: true | ||
type: string | ||
default: "" | ||
|
||
concurrency: | ||
group: ${{ inputs.CONCURRENCY }}-build-web | ||
|
@@ -54,21 +53,29 @@ jobs: | |
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.6.0 | ||
|
||
- name: Build web-viewer (release) | ||
shell: bash | ||
run: | | ||
cargo run --locked -p re_build_web_viewer -- --release ${{ inputs.EXTRA_FLAGS }} | ||
if [ ${{ inputs.CHANNEL }} = "nightly" ]; then | ||
export DEFAULT_EXAMPLES_MANIFEST_URL="https://app.rerun.io/version/nightly/examples_manifest.json" | ||
fi | ||
cargo run --locked -p re_build_web_viewer -- --release | ||
# We build a single manifest pointing to the `commit` | ||
# All the `pr`, `nightly`, release tag, etc. variants will always just point to the resolved commit | ||
# All the `pr`, `main`, release tag, etc. variants will always just point to the resolved commit | ||
- name: Build examples manifest | ||
shell: bash | ||
run: | | ||
full_commit="${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha }}" | ||
sha="$(echo $full_commit | cut -c1-7)" | ||
cargo run --locked -p re_build_examples_manifest -- \ | ||
pixi run build-examples manifest \ | ||
--base-url "https://app.rerun.io/commit/$sha" \ | ||
--channel "${{ inputs.CHANNEL }}" \ | ||
web_viewer/examples_manifest.json | ||
- name: Upload web assets | ||
|
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.