File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed
Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 3737
3838 - name : Restore rustup cache
3939 id : restore
40+ if : ${{ inputs.save-if == 'true' }}
4041 uses : ./.github/actions/cache/restore
4142 with :
4243 path : ~/.rustup/toolchains
6364 key : rustup-cache-v2-${{ runner.os }}-${{ steps.get-toolchain.outputs.toolchain }}
6465
6566 - name : Cargo cache
67+ if : ${{ runner.environment != 'self-hosted' || runner.os != 'Windows' }}
6668 uses : ./.github/actions/rustup/cargo
6769 with :
6870 key : ${{ inputs.key }}
69- save-if : ${{ inputs.save-if }}
71+ save-if : ${{ inputs.save-if == 'true' }}
Original file line number Diff line number Diff line change 6969 with :
7070 target : x86_64-pc-windows-msvc
7171 profile : " dev"
72- runner : ${{ vars.WINDOWS_RUNNER_LABELS || '"windows-latest"' }}
72+ runner : ${{ vars.WINDOWS_SELF_HOSTED_RUNNER_LABELS || '"windows-latest"' }}
73+ test-runner : ' "windows-latest"'
7374 test : true
7475
7576 test-mac :
Original file line number Diff line number Diff line change 4949 uses : ./.github/actions/rustup
5050 with :
5151 key : ${{ inputs.target }}-${{ inputs.profile }}
52- save-if : true
52+ # don't need use cache in self-hosted windows; benefits of build with cargo build are wasted by cache restore
53+ save-if : ${{ runner.environment != 'self-hosted' || runner.os != 'Windows' }}
5354
5455 # setup rust target for native runner
5556 - name : Setup Rust Target
Original file line number Diff line number Diff line change 99 runner : # Runner labels
1010 required : true
1111 type : string
12+ test-runner : # Test Runner labels
13+ required : false
14+ type : string
1215 profile : # Rust profile, "ci" or "production" or "profiling"
1316 default : " ci"
1417 required : false
4346 uses : ./.github/workflows/reusable-build-test.yml
4447 with :
4548 target : ${{ inputs.target }}
46- runner : ${{ inputs.runner }}
49+ runner : ${{ inputs.test-runner || inputs. runner }}
4750 ref : ${{ inputs.ref }}
4851 bench :
4952 uses : ./.github/workflows/reusable-build-bench.yml
You can’t perform that action at this time.
0 commit comments