Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate artifacts. #1594

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 93 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
optimization: "debug"
assert: "debug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
cc: "clang-15"
flags: "-Og -fPIE"
options: "--enable-isystem --enable-avx2 --enable-sse4"
options: "--enable-isystem --enable-avx2 --enable-sse41"
packager: "apt"
packages: ""

Expand All @@ -38,6 +39,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: "--build-icu --with-icu"
secp256k1: "--build-secp256k1"
Expand All @@ -53,12 +55,13 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
cc: "gcc-11"
flags: "-Os -fPIE"
options: "--enable-isystem --enable-sse4"
options: "--enable-isystem --enable-sse41"
packager: "apt"
packages: ""

Expand All @@ -68,6 +71,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "cov"
detectcpuflags: "detect"
boost: "--build-boost"
icu: "--build-icu --with-icu"
secp256k1: "--build-secp256k1"
Expand All @@ -83,6 +87,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
Expand All @@ -98,6 +103,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
Expand Down Expand Up @@ -136,6 +142,29 @@ jobs:
run: |
brew install autoconf automake libtool ${{ matrix.packages }}

- name: Determine CPU flags
shell: bash
run: |
if [[ -n $(cat /proc/cpuinfo | grep flags | grep " sse4_1 ") ]]; then
echo "CPU_SUPPORT_SSE41=--enable-sse41" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " avx " | grep " avx2 ") ]]; then
echo "CPU_SUPPORT_AVX2=--enable-avx2" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " avx512bw ") ]]; then
echo "CPU_SUPPORT_AVX512=--enable-avx512" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " sha_ni ") ]]; then
echo "CPU_SUPPORT_SHANI=--enable-shani" >> $GITHUB_ENV
fi

if [[ ${{ matrix.detectcpuflags }} == 'detect' ]]; then
echo "CPU_SUPPORTED_FLAGS='$CPU_SUPPORT_SSE41 $CPU_SUPPORT_AVX2 $CPU_SUPPORT_AVX512 $CPU_SUPPORT_SHANI'" >> $GITHUB_ENV
fi

- name: Denormalize parameterization
shell: bash
run: |
Expand Down Expand Up @@ -174,6 +203,7 @@ jobs:
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
${{ env.CPU_SUPPORTED_FLAGS }}
${{ matrix.boost }}
${{ matrix.icu }}
${{ matrix.secp256k1 }}
Expand Down Expand Up @@ -255,12 +285,13 @@ jobs:
optimization: "debug"
assert: "debug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
cc: "clang-15"
flags: "-Og -fPIE"
options: "-Denable-avx2=on -Denable-sse4=on"
options: "-Denable-avx2=on -Denable-sse41=on"
packager: "apt"
packages: ""

Expand All @@ -270,6 +301,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: "--build-icu --with-icu"
secp256k1: "--build-secp256k1"
Expand All @@ -285,12 +317,13 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
cc: "gcc-11"
flags: "-Os -fPIE"
options: "-Denable-sse4=on"
options: "-Denable-sse41=on"
packager: "apt"
packages: ""

Expand All @@ -300,6 +333,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: "--build-icu --with-icu"
secp256k1: "--build-secp256k1"
Expand All @@ -315,6 +349,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
Expand All @@ -330,6 +365,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
Expand Down Expand Up @@ -368,6 +404,29 @@ jobs:
run: |
brew install autoconf automake libtool ${{ matrix.packages }}

- name: Determine CPU flags
shell: bash
run: |
if [[ -n $(cat /proc/cpuinfo | grep flags | grep " sse4_1 ") ]]; then
echo "CPU_SUPPORT_SSE41=-Denable-sse41=on" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " avx " | grep " avx2 ") ]]; then
echo "CPU_SUPPORT_AVX2=-Denable-avx2=on" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " avx512bw ") ]]; then
echo "CPU_SUPPORT_AVX512=-Denable-avx512=on" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " sha_ni ") ]]; then
echo "CPU_SUPPORT_SHANI=-Denable-shani=on" >> $GITHUB_ENV
fi

if [[ ${{ matrix.detectcpuflags }} == 'detect' ]]; then
echo "CPU_SUPPORTED_FLAGS='$CPU_SUPPORT_SSE41 $CPU_SUPPORT_AVX2 $CPU_SUPPORT_AVX512 $CPU_SUPPORT_SHANI'" >> $GITHUB_ENV
fi

- name: Denormalize parameterization
shell: bash
run: |
Expand Down Expand Up @@ -409,6 +468,7 @@ jobs:
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
${{ env.CPU_SUPPORTED_FLAGS }}
${{ matrix.boost }}
${{ matrix.icu }}
${{ matrix.secp256k1 }}
Expand Down Expand Up @@ -501,12 +561,13 @@ jobs:
optimization: "debug"
assert: "debug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
cc: "clang-15"
flags: "-Og -fPIE"
options: "-Denable-avx2=on -Denable-sse4=on"
options: "-Denable-avx2=on -Denable-sse41=on"
packager: "apt"
packages: ""

Expand All @@ -517,6 +578,7 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: "--build-icu --with-icu"
secp256k1: "--build-secp256k1"
Expand All @@ -533,12 +595,13 @@ jobs:
optimization: "size"
assert: "ndebug"
coverage: "nocov"
detectcpuflags: "ignore"
boost: "--build-boost"
icu: ""
secp256k1: "--build-secp256k1"
cc: "gcc-11"
flags: "-Os -fPIE"
options: "-Denable-sse4=on"
options: "-Denable-sse41=on"
packager: "apt"
packages: ""

Expand Down Expand Up @@ -571,6 +634,29 @@ jobs:
run: |
brew install autoconf automake libtool ${{ matrix.packages }}

- name: Determine CPU flags
shell: bash
run: |
if [[ -n $(cat /proc/cpuinfo | grep flags | grep " sse4_1 ") ]]; then
echo "CPU_SUPPORT_SSE41=-Denable-sse41=on" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " avx " | grep " avx2 ") ]]; then
echo "CPU_SUPPORT_AVX2=-Denable-avx2=on" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " avx512bw ") ]]; then
echo "CPU_SUPPORT_AVX512=-Denable-avx512=on" >> $GITHUB_ENV
fi

if [[ -n $(cat /proc/cpuinfo | grep flags | grep " sha_ni ") ]]; then
echo "CPU_SUPPORT_SHANI=-Denable-shani=on" >> $GITHUB_ENV
fi

if [[ ${{ matrix.detectcpuflags }} == 'detect' ]]; then
echo "CPU_SUPPORTED_FLAGS='$CPU_SUPPORT_SSE41 $CPU_SUPPORT_AVX2 $CPU_SUPPORT_AVX512 $CPU_SUPPORT_SHANI'" >> $GITHUB_ENV
fi

- name: Denormalize parameterization
shell: bash
run: |
Expand Down Expand Up @@ -613,6 +699,7 @@ jobs:
--preset=${{ matrix.preset }}
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
${{ env.CPU_SUPPORTED_FLAGS }}
${{ matrix.boost }}
${{ matrix.icu }}
${{ matrix.secp256k1 }}
Expand Down
Loading