Skip to content

Commit

Permalink
Add missing C flags for SIMD support in build workflow (#7045)
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Oct 9, 2021
1 parent d6de61d commit 810a854
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nightly-release.yml
Expand Up @@ -71,9 +71,11 @@ jobs:
- target: arm-unknown-linux-gnueabihf
arch: armhf
strip: arm-linux-gnueabihf-strip
cflags: -mfpu=neon
- target: aarch64-unknown-linux-gnu
arch: arm64
strip: aarch64-linux-gnu-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
steps:
Expand All @@ -94,6 +96,7 @@ jobs:
run: yarn build-native-release
env:
RUST_TARGET: ${{ matrix.target }}
CFLAGS: ${{ matrix.cflags }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: ${{ matrix.strip }} packages/*/*/*.node
- name: Upload artifacts
Expand All @@ -119,8 +122,10 @@ jobs:
include:
- target: x86_64-unknown-linux-musl
strip: strip
cflags: -msse4.2
- target: aarch64-unknown-linux-musl
strip: aarch64-linux-musl-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -150,6 +155,7 @@ jobs:
run: yarn build-native-release
env:
RUST_TARGET: ${{ matrix.target }}
CFLAGS: ${{ matrix.cflags }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: ${{ matrix.strip }} packages/*/*/*.node
- name: Upload artifacts
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tag-release.yml
Expand Up @@ -70,9 +70,11 @@ jobs:
- target: arm-unknown-linux-gnueabihf
arch: armhf
strip: arm-linux-gnueabihf-strip
cflags: -mfpu=neon
- target: aarch64-unknown-linux-gnu
arch: arm64
strip: aarch64-linux-gnu-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
steps:
Expand All @@ -93,6 +95,7 @@ jobs:
run: yarn build-native-release
env:
RUST_TARGET: ${{ matrix.target }}
CFLAGS: ${{ matrix.cflags }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: ${{ matrix.strip }} packages/*/*/*.node
- name: Upload artifacts
Expand All @@ -118,8 +121,10 @@ jobs:
include:
- target: x86_64-unknown-linux-musl
strip: strip
cflags: -msse4.2
- target: aarch64-unknown-linux-musl
strip: aarch64-linux-musl-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -149,6 +154,7 @@ jobs:
run: yarn build-native-release
env:
RUST_TARGET: ${{ matrix.target }}
CFLAGS: ${{ matrix.cflags }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: ${{ matrix.strip }} packages/*/*/*.node
- name: Upload artifacts
Expand Down

0 comments on commit 810a854

Please sign in to comment.