Skip to content

Commit 810a854

Browse files
authoredOct 9, 2021
Add missing C flags for SIMD support in build workflow (#7045)
1 parent d6de61d commit 810a854

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎.github/workflows/nightly-release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ jobs:
7171
- target: arm-unknown-linux-gnueabihf
7272
arch: armhf
7373
strip: arm-linux-gnueabihf-strip
74+
cflags: -mfpu=neon
7475
- target: aarch64-unknown-linux-gnu
7576
arch: arm64
7677
strip: aarch64-linux-gnu-strip
78+
cflags: ''
7779
name: ${{ matrix.target }}
7880
runs-on: ubuntu-latest
7981
steps:
@@ -94,6 +96,7 @@ jobs:
9496
run: yarn build-native-release
9597
env:
9698
RUST_TARGET: ${{ matrix.target }}
99+
CFLAGS: ${{ matrix.cflags }}
97100
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
98101
run: ${{ matrix.strip }} packages/*/*/*.node
99102
- name: Upload artifacts
@@ -119,8 +122,10 @@ jobs:
119122
include:
120123
- target: x86_64-unknown-linux-musl
121124
strip: strip
125+
cflags: -msse4.2
122126
- target: aarch64-unknown-linux-musl
123127
strip: aarch64-linux-musl-strip
128+
cflags: ''
124129
name: ${{ matrix.target }}
125130
runs-on: ubuntu-latest
126131
container:
@@ -150,6 +155,7 @@ jobs:
150155
run: yarn build-native-release
151156
env:
152157
RUST_TARGET: ${{ matrix.target }}
158+
CFLAGS: ${{ matrix.cflags }}
153159
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
154160
run: ${{ matrix.strip }} packages/*/*/*.node
155161
- name: Upload artifacts

‎.github/workflows/tag-release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ jobs:
7070
- target: arm-unknown-linux-gnueabihf
7171
arch: armhf
7272
strip: arm-linux-gnueabihf-strip
73+
cflags: -mfpu=neon
7374
- target: aarch64-unknown-linux-gnu
7475
arch: arm64
7576
strip: aarch64-linux-gnu-strip
77+
cflags: ''
7678
name: ${{ matrix.target }}
7779
runs-on: ubuntu-latest
7880
steps:
@@ -93,6 +95,7 @@ jobs:
9395
run: yarn build-native-release
9496
env:
9597
RUST_TARGET: ${{ matrix.target }}
98+
CFLAGS: ${{ matrix.cflags }}
9699
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
97100
run: ${{ matrix.strip }} packages/*/*/*.node
98101
- name: Upload artifacts
@@ -118,8 +121,10 @@ jobs:
118121
include:
119122
- target: x86_64-unknown-linux-musl
120123
strip: strip
124+
cflags: -msse4.2
121125
- target: aarch64-unknown-linux-musl
122126
strip: aarch64-linux-musl-strip
127+
cflags: ''
123128
name: ${{ matrix.target }}
124129
runs-on: ubuntu-latest
125130
container:
@@ -149,6 +154,7 @@ jobs:
149154
run: yarn build-native-release
150155
env:
151156
RUST_TARGET: ${{ matrix.target }}
157+
CFLAGS: ${{ matrix.cflags }}
152158
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
153159
run: ${{ matrix.strip }} packages/*/*/*.node
154160
- name: Upload artifacts

0 commit comments

Comments
 (0)
Please sign in to comment.