mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 12:10:02 +00:00
Speedup ci.yml
: Set codegen-units to 4 (#1283)
Set `CARGO_PROFILE_RELEASE_CODEGEN_UNITS` to 4 since 1024 units are too many and our CI only have 2-3 cores. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9e901c6b84
commit
ba87a4af70
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -24,6 +24,9 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||||
JUST_ENABLE_H3: true
|
JUST_ENABLE_H3: true
|
||||||
|
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 4
|
||||||
|
CARGO_PROFILE_DEV_CODEGEN_UNITS: 4
|
||||||
|
CARGO_PROFILE_CHECK_ONLY_CODEGEN_UNITS: 4
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -121,7 +124,7 @@ jobs:
|
||||||
uses: ./.github/workflows/release-build.yml
|
uses: ./.github/workflows/release-build.yml
|
||||||
with:
|
with:
|
||||||
CARGO_PROFILE_RELEASE_LTO: no
|
CARGO_PROFILE_RELEASE_LTO: no
|
||||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1024
|
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 4
|
||||||
|
|
||||||
# Dummy job to have a stable name for the "all tests pass" requirement
|
# Dummy job to have a stable name for the "all tests pass" requirement
|
||||||
tests-pass:
|
tests-pass:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue