Skip to content

Commit 4856277

Browse files
committed
AVX2 for deps in CI
1 parent d419904 commit 4856277

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
CARGO_TARGET_DIR: ${{ github.workspace }}\cargo_build
5454
CIBW_ARCHS_WINDOWS: native
5555
CIBW_BUILD_VERBOSITY: "1"
56-
CIBW_ENVIRONMENT: 'RUST_BACKTRACE=full SCALIB_AVX2=1'
56+
# add RUSTFLAGS so that deps build with avx2, needed due to likely bug in setuptools_rust
57+
CIBW_ENVIRONMENT: 'RUST_BACKTRACE=full SCALIB_AVX2=1 RUSTFLAGS="-C target-feature=+avx2"'
5758
CIBW_BUILD: "cp37-win_amd64"
5859
# I don't know how to make both normal and doctring tests
5960
# work with only one command, so I use shell &&.
@@ -77,7 +78,8 @@ jobs:
7778
#CIBW_MANYLINUX_X86_64_IMAGE: "ghcr.io/simple-crypto/manylinux2014_x86_64:rust-1.51.0"
7879
CIBW_MANYLINUX_X86_64_IMAGE: "ghcr.io/simple-crypto/manylinux2014_x86_64-clang:rust-1.60.0"
7980
CIBW_BUILD_VERBOSITY: "1"
80-
CIBW_ENVIRONMENT: 'RUST_BACKTRACE=full CARGO_TARGET_DIR=/host${{ github.workspace }}/cargo_build CARGO_HOME=/host${{ github.workspace }}/cargo_home SCALIB_AVX2=1'
81+
# add RUSTFLAGS so that deps build with avx2, needed due to likely bug in setuptools_rust
82+
CIBW_ENVIRONMENT: 'RUST_BACKTRACE=full CARGO_TARGET_DIR=/host${{ github.workspace }}/cargo_build CARGO_HOME=/host${{ github.workspace }}/cargo_home SCALIB_AVX2=1 RUSTFLAGS="-C target-feature=+avx2"'
8183
CIBW_BUILD: "cp37-manylinux_x86_64*"
8284
# I don't know how to make both normal and doctring tests work with only one command,
8385
# so I use shell &&.

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Changelog
55
Not released
66
------------
77

8+
v0.4.2 (2022/05/31)
9+
-------------------
10+
11+
* Fix AVX2 not used when building rust dependencies.
12+
813
v0.4.1 (2022/05/31)
914
-------------------
1015

0 commit comments

Comments
 (0)