Skip to content

Commit 6887693

Browse files
committed
Run stdarch tests in the CI
1 parent 57b50df commit 6887693

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646

4747
- name: Install packages
4848
# `llvm-10-tools` is needed to install the `FileCheck` binary which is used for asm tests.
49-
run: sudo apt-get install ninja-build ripgrep llvm-10-tools
49+
run: |
50+
lscpu
51+
sudo apt-get install ninja-build ripgrep llvm-10-tools
5052
5153
- name: Download artifact
5254
uses: dawidd6/action-download-artifact@v2

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ jobs:
105105
- name: Run tests
106106
run: |
107107
./test.sh --release --clean --release-sysroot --build-sysroot --mini-tests --std-tests # --test-libcore # FIXME(antoyo): libcore tests fail.
108+
109+
- name: Run stdarch tests
110+
run: |
111+
cd build_sysroot/sysroot_src/library/stdarch/
112+
CHANNEL=release TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
101101
context.add_command_line_option("-m64");
102102
context.add_command_line_option("-mbmi");
103103
context.add_command_line_option("-mgfni");
104-
context.add_command_line_option("-mavxvnni");
104+
//context.add_command_line_option("-mavxvnni"); // The CI doesn't support this option.
105105
context.add_command_line_option("-mf16c");
106106
context.add_command_line_option("-maes");
107107
context.add_command_line_option("-mxsavec");

0 commit comments

Comments
 (0)