mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +00:00
fix release-build.yml
: Fix cache key for Swatinem/rust-cache@v2
(#1180)
Set `CARGO_*` env before caching is done. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3d81c147be
commit
f0c3d1e724
1 changed files with 9 additions and 8 deletions
17
.github/workflows/release-build.yml
vendored
17
.github/workflows/release-build.yml
vendored
|
@ -50,6 +50,15 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Override release profile lto settings
|
||||||
|
if: inputs.CARGO_PROFILE_RELEASE_LTO
|
||||||
|
run: echo "CARGO_PROFILE_RELEASE_LTO=${{ inputs.CARGO_PROFILE_RELEASE_LTO }}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Override release profile codegen-units settings
|
||||||
|
if: inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS
|
||||||
|
run: echo "CARGO_PROFILE_RELEASE_CODEGEN_UNITS=${{ inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS }}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- uses: ./.github/actions/just-setup
|
- uses: ./.github/actions/just-setup
|
||||||
with:
|
with:
|
||||||
tools: cargo-auditable
|
tools: cargo-auditable
|
||||||
|
@ -61,14 +70,6 @@ jobs:
|
||||||
- run: just toolchain rust-src
|
- run: just toolchain rust-src
|
||||||
- run: just ci-install-deps
|
- run: just ci-install-deps
|
||||||
|
|
||||||
- name: Override release profile lto settings
|
|
||||||
if: inputs.CARGO_PROFILE_RELEASE_LTO
|
|
||||||
run: echo "CARGO_PROFILE_RELEASE_LTO=${{ inputs.CARGO_PROFILE_RELEASE_LTO }}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Override release profile codegen-units settings
|
|
||||||
if: inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS
|
|
||||||
run: echo "CARGO_PROFILE_RELEASE_CODEGEN_UNITS=${{ inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS }}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- run: just package
|
- run: just package
|
||||||
- if: runner.os == 'Windows'
|
- if: runner.os == 'Windows'
|
||||||
run: Get-ChildItem packages/
|
run: Get-ChildItem packages/
|
||||||
|
|
Loading…
Add table
Reference in a new issue