Skip to content

Commit 49c2063

Browse files
committed
update config portable
1 parent 212eea8 commit 49c2063

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/build-setup.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
set -euo pipefail
55
cp .cargo/config-portable.toml .cargo/config.toml
66
7+
- name: Verify runner CPU + AVX2 visibility
8+
shell: bash
9+
run: |
10+
set -euo pipefail
11+
uname -m
12+
if [[ "$RUNNER_OS" == "Linux" ]]; then
13+
lscpu | egrep -i 'Model name|Flags'
14+
lscpu | grep -qi avx2
15+
else
16+
sysctl -n machdep.cpu.brand_string || true
17+
sysctl -n machdep.cpu.features | grep -q AVX2
18+
fi
19+
720
- name: Force AVX2 for x86_64
821
shell: bash
922
run: |

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ jobs:
132132
set -euo pipefail
133133
cp .cargo/config-portable.toml .cargo/config.toml
134134
shell: "bash"
135+
- name: "Verify runner CPU + AVX2 visibility"
136+
run: |
137+
set -euo pipefail
138+
uname -m
139+
if [[ "$RUNNER_OS" == "Linux" ]]; then
140+
lscpu | egrep -i 'Model name|Flags'
141+
lscpu | grep -qi avx2
142+
else
143+
sysctl -n machdep.cpu.brand_string || true
144+
sysctl -n machdep.cpu.features | grep -q AVX2
145+
fi
146+
shell: "bash"
135147
- name: "Force AVX2 for x86_64"
136148
run: |
137149
set -euo pipefail

0 commit comments

Comments
 (0)