Skip to content

Commit

Permalink
Install & cache needed pixi environments on ci (#5958)
Browse files Browse the repository at this point in the history
### What

Before we'd only cache the default environment. Now, jobs install &
cache the needed environments ahead of time.
see https://github.com/marketplace/actions/setup-pixi#caching

### 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/5958?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/5958?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/5958)
- [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`.
  • Loading branch information
Wumpf authored Apr 12, 2024
1 parent 1fa2455 commit d90ed2f
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.18.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto_release_crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checkboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.18.0

Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/contrib_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand All @@ -62,9 +62,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: py-docs

- name: Build via mkdocs
run: pixi run -e py-docs mkdocs build --strict -f rerun_py/mkdocs.yml
Expand All @@ -78,7 +79,7 @@ jobs:
# PR introduces a new type and another PR changes the codegen.
- uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand All @@ -102,7 +103,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down Expand Up @@ -154,9 +155,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: cpp

# TODO(emilk): make this work somehow. Right now this just results in
# > Compiler: GNU 12.3.0 (/__w/rerun/rerun/.pixi/env/bin/x86_64-conda-linux-gnu-c++)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/contrib_rerun_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: wheel-test

- name: Build Wheel
uses: PyO3/maturin-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_pull_request_target_contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
with:
node-version: 18

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
with:
node-version: 18

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build_and_upload_rerun_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
targets: ${{ needs.set-config.outputs.TARGET }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build_and_upload_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
targets: ${{ needs.set-config.outputs.TARGET }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable_build_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ jobs:
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: wheel-test

- name: Download Wheel
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/reusable_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: py-docs

- name: Build via mkdocs
run: pixi run -e py-docs mkdocs build --strict -f rerun_py/mkdocs.yml
Expand All @@ -71,7 +72,7 @@ jobs:
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand All @@ -90,7 +91,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable_checks_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: cpp

- name: Set up Rust
uses: ./.github/actions/setup-rust
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/reusable_checks_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand All @@ -49,9 +49,10 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: py-docs

- name: Build via mkdocs
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_checks_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/reusable_deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ jobs:
fetch-depth: 0 # Don't do a shallow clone
ref: ${{ inputs.RELEASE_COMMIT || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || '') }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: py-docs

- name: Set up git author
shell: bash
Expand Down Expand Up @@ -202,7 +203,7 @@ jobs:
fetch-depth: 0 # Don't do a shallow clone since we need to push gh-pages
ref: ${{ inputs.RELEASE_COMMIT || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || '') }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_pr_summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.18.0

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable_publish_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ jobs:
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: wheel-test

# built by `reusable_build_and_publish_wheels`
- name: Download Wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_publish_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
fetch-depth: 0 # Don't do a shallow clone since we need it for finding the full commit hash
ref: ${{ inputs.release-commit }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_release_crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
ref: ${{ inputs.RELEASE_COMMIT || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || '') }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_sync_release_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.18.0

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable_test_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ jobs:
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.19.0
environments: wheel-test

- name: Download Wheel
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_update_pr_body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}

- uses: prefix-dev/setup-pixi@v0.4.1
- uses: prefix-dev/setup-pixi@v0.5.2
with:
pixi-version: v0.18.0

Expand Down

0 comments on commit d90ed2f

Please sign in to comment.