Skip to content

Commit aeac484

Browse files
committed
Run tests with LLVM sysroot in CI
1 parent 7690070 commit aeac484

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ jobs:
9393
- name: Prepare dependencies
9494
run: ./y.rs prepare
9595

96-
- name: Build without unstable features
97-
env:
98-
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
99-
# This is the config rust-lang/rust uses for builds
100-
run: ./y.rs build --no-unstable-features
101-
10296
- name: Build
10397
run: ./y.rs build --sysroot none
10498

@@ -107,6 +101,15 @@ jobs:
107101
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
108102
run: ./y.rs test
109103

104+
- name: Install LLVM standard library
105+
run: rustup target add ${{ matrix.env.TARGET_TRIPLE }}
106+
107+
# This is roughly config rust-lang/rust uses for testing
108+
- name: Test with LLVM sysroot
109+
env:
110+
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
111+
run: ./y.rs test --sysroot llvm --no-unstable-features
112+
110113

111114
# This job doesn't use cg_clif in any way. It checks that all cg_clif tests work with cg_llvm too.
112115
test_llvm:

0 commit comments

Comments
 (0)