Skip to content

Commit eed130c

Browse files
committed
Use Intel SDE to test i686 too
1 parent d4a226d commit eed130c

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ jobs:
175175
tuple: s390x-unknown-linux-gnu
176176
os: ubuntu-latest
177177
test_everything: true
178+
- target:
179+
tuple: i686-unknown-linux-gnu
180+
os: ubuntu-latest
181+
test_everything: true
178182
- target:
179183
tuple: x86_64-unknown-linux-gnu
180184
os: ubuntu-latest

ci/docker/x86_64-unknown-linux-gnu/cpuid.def renamed to ci/cpuid.def

File renamed without changes.

ci/docker/i686-unknown-linux-gnu/Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
44
libc6-dev \
55
file \
66
make \
7-
ca-certificates
7+
ca-certificates \
8+
wget \
9+
xz-utils
10+
11+
RUN wget http://ci-mirrors.rust-lang.org/stdarch/sde-external-10.5.0-2026-01-13-lin.tar.xz -O sde.tar.xz
12+
RUN mkdir intel-sde
13+
RUN tar -xJf sde.tar.xz --strip-components=1 -C intel-sde
14+
RUN echo 0 > /proc/sys/kernel/yama/ptrace_scope
15+
ENV CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_RUNNER="/intel-sde/sde \
16+
-cpuid-in /checkout/ci/cpuid.def \
17+
-rtm-mode full -tsx --"
18+
# SDE doesn't support AMD extensions
19+
# FIXME: find a way to test these
20+
ENV STDARCH_TEST_SKIP_FEATURE="sse4a,tbm,xop"

ci/docker/x86_64-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN wget http://ci-mirrors.rust-lang.org/stdarch/sde-external-10.5.0-2026-01-13-
1616
RUN mkdir intel-sde
1717
RUN tar -xJf sde.tar.xz --strip-components=1 -C intel-sde
1818
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/intel-sde/sde64 \
19-
-cpuid-in /checkout/ci/docker/x86_64-unknown-linux-gnu/cpuid.def \
19+
-cpuid-in /checkout/ci/cpuid.def \
2020
-rtm-mode full -tsx --"
2121
# SDE doesn't support AMD extensions
2222
# FIXME: find a way to test these

0 commit comments

Comments
 (0)