mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Fix CI: Only turn on feature pkg-config on linux and fix cross compilation (#815)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
61c992612c
commit
9923788f07
2 changed files with 3 additions and 2 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -38,13 +38,14 @@ jobs:
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- target: x86_64-unknown-linux-musl
|
- target: x86_64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
c: true
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
CARGO_BUILD_TARGET: ${{ matrix.target }}
|
CARGO_BUILD_TARGET: ${{ matrix.target }}
|
||||||
CARGO_BINSTALL_LOG_LEVEL: debug
|
JUST_USE_CARGO_ZIGBUILD: ${{ matrix.c }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
2
justfile
2
justfile
|
@ -63,7 +63,7 @@ cargo-no-default-features := if default-features == "false" { " --no-default-fea
|
||||||
} else { "" }
|
} else { "" }
|
||||||
|
|
||||||
support-pkg-config := if target == target-host {
|
support-pkg-config := if target == target-host {
|
||||||
if target-os != "windows" { "true" } else { "" }
|
if target-os == "linux" { "true" } else { "" }
|
||||||
} else { "" }
|
} else { "" }
|
||||||
|
|
||||||
cargo-features := trim_end_match(if override-features != "" { override-features
|
cargo-features := trim_end_match(if override-features != "" { override-features
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue