File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments