Skip to content

Commit 7e86a82

Browse files
committed
more ci fixes
1 parent 6ac1bcb commit 7e86a82

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/release-pypi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ jobs:
9494
if: contains(matrix.target, 'musl') && !matrix.use_zig
9595
run: sudo apt-get update && sudo apt-get install -y musl-tools
9696

97+
- name: Set musl CC for native ARM builds
98+
if: contains(matrix.target, 'aarch64') && contains(matrix.target, 'musl') && !matrix.use_zig
99+
run: |
100+
echo "CC_aarch64_unknown_linux_musl=musl-gcc" >> $GITHUB_ENV
101+
echo "AR_aarch64_unknown_linux_musl=ar" >> $GITHUB_ENV
102+
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc" >> $GITHUB_ENV
103+
97104
- name: Install maturin
98105
if: ${{ !matrix.use_zig }}
99106
run: pip install maturin

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ jobs:
126126
run: npm install
127127
working-directory: jacsnpm
128128

129+
- name: Set musl CC for native ARM builds
130+
if: contains(matrix.target, 'aarch64') && contains(matrix.target, 'musl') && !matrix.use_zig
131+
run: |
132+
echo "CC_aarch64_unknown_linux_musl=musl-gcc" >> $GITHUB_ENV
133+
echo "AR_aarch64_unknown_linux_musl=ar" >> $GITHUB_ENV
134+
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc" >> $GITHUB_ENV
135+
129136
- name: Build native module
130137
working-directory: jacsnpm
131138
shell: bash

0 commit comments

Comments
 (0)