Disable feature pkg-config for cross compilation.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-23 19:56:42 +10:00
parent 8a32ab5dd3
commit adbc2d4a11
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -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') }}