Skip to content

Commit eeba937

Browse files
committed
Also run the CI with cg_llvm
1 parent 500be99 commit eeba937

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
- defconfig
2828
- defconfig+debug
2929

30+
backend:
31+
- gcc
32+
- llvm
33+
3034
output:
3135
- src
3236
# subdir
@@ -108,7 +112,8 @@ jobs:
108112
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
109113
110114
# Setup: `rustc_codegen_gcc`.
111-
- run: |
115+
- if: matrix.backend == 'gcc'
116+
run: |
112117
sudo apt-get -y --no-install-recommends purge cpp gcc
113118
curl --proto '=https' --tlsv1.2 -sSfLO https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb
114119
sudo dpkg -i gcc-15.deb
@@ -123,7 +128,6 @@ jobs:
123128
124129
echo "MAKE_KRUSTFLAGS=KRUSTFLAGS=-Zcodegen-backend=$(pwd)/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so" >> $GITHUB_ENV
125130
126-
127131
cd rustc_codegen_gcc
128132
echo 'gcc-path = "/usr/lib"' > config.toml
129133
#sed -i '/channel/d' rust-toolchain

0 commit comments

Comments
 (0)