mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Use rust-lld
in CI (#1253)
Which guarantees: - faster linking on all targets when `cargo-zigbuild` is not used - allow cross-lang-lto to be enabled Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
435df675b3
commit
1e4e0d166d
2 changed files with 25 additions and 0 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -38,11 +38,18 @@ jobs:
|
|||
os: windows-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
CARGO_BUILD_TARGET: ${{ matrix.target }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use rust-lld
|
||||
run: |
|
||||
echo "CARGO_TARGET_${CARGO_BUILD_TARGET}_LINKER=rust-lld" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: ./.github/actions/just-setup
|
||||
env:
|
||||
# just-setup use binstall to install sccache,
|
||||
|
@ -74,10 +81,17 @@ jobs:
|
|||
- target: aarch64-pc-windows-msvc
|
||||
os: windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
CARGO_BUILD_TARGET: ${{ matrix.target }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use rust-lld
|
||||
run: |
|
||||
echo "CARGO_TARGET_${CARGO_BUILD_TARGET}_LINKER=rust-lld" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: ./.github/actions/just-setup
|
||||
with:
|
||||
tools: cargo-hack
|
||||
|
@ -107,6 +121,9 @@ jobs:
|
|||
os: windows-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/just-setup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue