diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml index cbc4341f2bc6..9007e3e8fb1a 100644 --- a/.github/actions/setup-rust/action.yml +++ b/.github/actions/setup-rust/action.yml @@ -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" @@ -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 diff --git a/.github/workflows/reusable_build_and_upload_rerun_c.yml b/.github/workflows/reusable_build_and_upload_rerun_c.yml index d156d90311fd..996dbf3575d1 100644 --- a/.github/workflows/reusable_build_and_upload_rerun_c.yml +++ b/.github/workflows/reusable_build_and_upload_rerun_c.yml @@ -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