mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00
Disable feature pkg-config
for cross compilation.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
8a32ab5dd3
commit
adbc2d4a11
1 changed files with 8 additions and 1 deletions
|
@ -91,13 +91,20 @@ jobs:
|
||||||
args: --target ${{ matrix.target }} --release
|
args: --target ${{ matrix.target }} --release
|
||||||
use-cross: ${{ matrix.use-cross }}
|
use-cross: ${{ matrix.use-cross }}
|
||||||
|
|
||||||
|
- name: Build debug with cross compilation
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
if: ${{ ! startsWith(github.ref, 'refs/tags/v') && matrix.use-cross == 'true' }}
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --target ${{ matrix.target }} --no-default-features
|
||||||
|
use-cross: true
|
||||||
|
|
||||||
- name: Build debug
|
- name: Build debug
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
|
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --target ${{ matrix.target }} --no-default-features --features pkg-config
|
args: --target ${{ matrix.target }} --no-default-features --features pkg-config
|
||||||
use-cross: ${{ matrix.use-cross }}
|
|
||||||
|
|
||||||
- name: Copy and rename utility
|
- name: Copy and rename utility
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue