fix: split build steps for musl vs non-musl targets
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -229,11 +229,16 @@ jobs:
|
|||||||
if: matrix.target == 'x86_64-unknown-linux-musl'
|
if: matrix.target == 'x86_64-unknown-linux-musl'
|
||||||
run: sudo apt-get install -y musl-tools
|
run: sudo apt-get install -y musl-tools
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release (musl)
|
||||||
|
if: matrix.target == 'x86_64-unknown-linux-musl'
|
||||||
run: cargo build --release --target ${{ matrix.target }} --no-default-features
|
run: cargo build --release --target ${{ matrix.target }} --no-default-features
|
||||||
env:
|
env:
|
||||||
OPENSSL_STATIC: 1
|
OPENSSL_STATIC: 1
|
||||||
OPENSSL_VENDORED: ${{ matrix.target == 'x86_64-unknown-linux-musl' && '1' || '' }}
|
OPENSSL_VENDORED: 1
|
||||||
|
|
||||||
|
- name: Build release (non-musl)
|
||||||
|
if: matrix.target != 'x86_64-unknown-linux-musl'
|
||||||
|
run: cargo build --release --target ${{ matrix.target }} --no-default-features
|
||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user