Skip to content

Commit bd45794

Browse files
committed
Run tests against cg_llvm too in CI
Fixes rust-lang#1115
1 parent 72b194c commit bd45794

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,30 @@ jobs:
108108
run: ./y.rs test
109109

110110

111+
# This job doesn't use cg_clif in any way. It checks that all cg_clif tests work with cg_llvm too.
112+
test_llvm:
113+
runs-on: ubuntu-latest
114+
timeout-minutes: 60
115+
116+
defaults:
117+
run:
118+
shell: bash
119+
120+
steps:
121+
- uses: actions/checkout@v3
122+
123+
- name: Prepare dependencies
124+
run: ./y.rs prepare
125+
126+
- name: Disable JIT tests
127+
run: |
128+
sed -i 's/jit./#jit./' config.txt
129+
130+
- name: Test
131+
env:
132+
TARGET_TRIPLE: x86_64-unknown-linux-gnu
133+
run: ./y.rs test --use-backend llvm
134+
111135
bench:
112136
runs-on: ubuntu-latest
113137
timeout-minutes: 60

0 commit comments

Comments
 (0)