Skip to content

Commit c53c64e

Browse files
committed
Improve CI for libgccjit 12
1 parent a9f31ab commit c53c64e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/gcc12.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ jobs:
4444

4545
- name: Install packages
4646
# `llvm-14-tools` is needed to install the `FileCheck` binary which is used for asm tests.
47-
run: sudo apt-get install ninja-build ripgrep llvm-14-tools libgccjit-12-dev
47+
run: |
48+
sudo apt-get install ninja-build ripgrep llvm-14-tools libgccjit-12-dev
49+
gcc -v
50+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10
51+
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-12 10
52+
gcc -v
53+
cc -v
4854
4955
- name: Setup path to libgccjit
5056
run: echo /usr/lib/gcc/x86_64-linux-gnu/12 > gcc_path
@@ -121,4 +127,4 @@ jobs:
121127
# TODO(antoyo): add --build-sysroot when the build with libgccjit 12 is fixed.
122128
# FIXME(antoyo): we need to set GCC_EXEC_PREFIX so that the linker can find the linker plugin.
123129
# Not sure why it's not found otherwise.
124-
GCC_EXEC_PREFIX=/usr/lib/gcc/ ./test.sh --release --clean ${{ matrix.commands }} --no-default-features
130+
./test.sh --release --clean ${{ matrix.commands }} --no-default-features

0 commit comments

Comments
 (0)