fix(cd): avoid building musl

- one cannot build crate-type cdylib for musl targets
- this also removes `cross` from the show
This commit is contained in:
Hendrik Maus 2022-03-17 08:40:48 +01:00
parent 750a668e72
commit 16dccb3a37
No known key found for this signature in database
GPG Key ID: B6BAE8C6AA47DA8C

View File

@ -17,20 +17,10 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
# Supported `cross` targets: - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
# https://github.com/rust-embedded/cross#supported-targets - { target: x86_64-apple-darwin, os: macOS-latest }
- { target: aarch64-apple-darwin, os: macOS-latest }
# Linux targets - { target: x86_64-pc-windows-msvc, os: windows-latest }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, cross: false }
- { target: x86_64-unknown-linux-musl, os: ubuntu-latest, cross: true }
- { target: aarch64-unknown-linux-musl, os: ubuntu-latest, cross: true }
# macOS targets
- { target: x86_64-apple-darwin, os: macOS-latest, cross: false }
- { target: aarch64-apple-darwin, os: macOS-latest, cross: false }
# Windows targets
- { target: x86_64-pc-windows-msvc, os: windows-latest, cross: false }
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
steps: steps:
@ -53,7 +43,6 @@ jobs:
with: with:
args: --release --target ${{ matrix.target }} args: --release --target ${{ matrix.target }}
command: build command: build
use-cross: ${{ matrix.cross }}
- name: Prepare Upload - name: Prepare Upload
shell: bash shell: bash