Skip to content

Commit

Permalink
Make sure correct targets for building rerun_c are installed (#3895)
Browse files Browse the repository at this point in the history
### What

### 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 [demo.rerun.io](https://demo.rerun.io/pr/3895) (if
applicable)
* [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/3895)
- [Docs
preview](https://rerun.io/preview/31ab21163052dc78ee2c0834efb040b514dd21bd/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/31ab21163052dc78ee2c0834efb040b514dd21bd/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://ref.rerun.io/dev/bench/)
- [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
  • Loading branch information
Wumpf authored Oct 17, 2023
1 parent 4d1402c commit cbbe859
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
service_account:
type: string
required: true
targets:
type: string
required: false
description: "One or more space separated target triplets that will be ensured to be supported."

runs:
using: "composite"
Expand All @@ -44,6 +48,11 @@ runs:
rustup show
shell: bash

- name: Install additional targets
if: ${{ inputs.targets != '' }}
run: rustup target add ${{ inputs.targets }}
shell: bash

# Rust-cache will cache our dependencies, which is a large chunk of the build
# See: https://github.com/Swatinem/rust-cache
- name: Set up rust-cache
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reusable_build_and_upload_rerun_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ jobs:
save_cache: false
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
targets: ${{ needs.set-config.outputs.TARGET }}

- name: Build rerun_c (release)
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit cbbe859

Please sign in to comment.