Skip to content

Commit 1be4135

Browse files
committed
Run emulated stdarch tests in the CI
1 parent ba60936 commit 1be4135

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/stdarch.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
matrix:
2121
libgccjit_version:
2222
- { gcc: "libgccjit.so", artifacts_branch: "master" }
23-
commands: [
24-
"--test-successful-rustc --nb-parts 2 --current-part 0",
25-
"--test-successful-rustc --nb-parts 2 --current-part 1",
23+
cargo_runner: [
24+
"sde -future -rtm_mode full --",
25+
"",
2626
]
2727

2828
steps:
@@ -36,6 +36,20 @@ jobs:
3636
- name: Install packages
3737
run: sudo apt-get install ninja-build ripgrep
3838

39+
- name: Install Intel Software Development Emulator
40+
if: ${{ matrix.cargo_runner }}
41+
run: |
42+
mkdir intel-sde
43+
cd intel-sde
44+
dir=sde-external-9.14.0-2022-10-25-lin
45+
file=$dir.tar.xz
46+
wget https://downloadmirror.intel.com/751535/$file
47+
tar xvf $file
48+
sudo mkdir /usr/share/intel-sde
49+
sudo cp -r $dir/* /usr/share/intel-sde
50+
sudo ln -s /usr/share/intel-sde/sde /usr/bin/sde
51+
sudo ln -s /usr/share/intel-sde/sde64 /usr/bin/sde64
52+
3953
- name: Download artifact
4054
uses: dawidd6/action-download-artifact@v2
4155
with:
@@ -91,6 +105,10 @@ jobs:
91105
./prepare_build.sh
92106
./build.sh --release --release-sysroot
93107
cargo test
108+
109+
- name: Clean
110+
if: ${{ !matrix.cargo_runner }}
111+
run: |
94112
./clean_all.sh
95113
96114
- name: Prepare dependencies
@@ -107,10 +125,12 @@ jobs:
107125
args: --release
108126

109127
- name: Run tests
128+
if: ${{ !matrix.cargo_runner }}
110129
run: |
111130
./test.sh --release --clean --release-sysroot --build-sysroot --mini-tests --std-tests --test-libcore
112131
113132
- name: Run stdarch tests
114133
run: |
115134
cd build_sysroot/sysroot_src/library/stdarch/
116-
CHANNEL=release TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test
135+
# TODO: run all the test by patching the source code.
136+
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test

0 commit comments

Comments
 (0)