Skip to content

Commit b8819fe

Browse files
cblichmanncopybara-github
authored andcommitted
CMake: Refine Ubuntu 24.04 workflow compilers and dependencies
This change updates the Ubuntu 24.04 CMake workflow to test against Clang 19, 18 and GCC 14, 13. The `libclang` dependencies are also updated to install the `-dev` packages, including `libclang-rt` and `llvm` development files, and remove the `python3-clang` package. PiperOrigin-RevId: 903772311 Change-Id: Icf908e5df8e6add47ca2ac9f1537cb3de59afdf5
1 parent 18fcc9e commit b8819fe

1 file changed

Lines changed: 17 additions & 29 deletions

File tree

.github/workflows/ubuntu-cmake.yml

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,29 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
include:
14-
# Ubuntu 24.04: Use preinstalled Clang 18, 17, 16
14+
# Ubuntu 24.04: Use preinstalled Clang 19, 18
1515
- os: ubuntu-24.04
1616
compiler: clang
17-
compiler-version: 18
18-
libclang-version: 18
19-
ignore-errors: false
20-
- os: ubuntu-24.04
21-
compiler: clang
22-
compiler-version: 17
23-
libclang-version: 18
17+
compiler-version: 19
18+
libclang-version: 19
2419
ignore-errors: false
2520
- os: ubuntu-24.04
2621
compiler: clang
27-
compiler-version: 16
28-
libclang-version: 18
29-
ignore-errors: false
30-
# Ubuntu 24.04: Use preinstalled GCC 9.5.0, 10.4.0, 11.3.0, 12.1.0
31-
- os: ubuntu-24.04
32-
compiler: gcc
33-
compiler-version: 12
34-
libclang-version: 18
35-
ignore-errors: false
36-
- os: ubuntu-24.04
37-
compiler: gcc
38-
compiler-version: 11
39-
libclang-version: 18
22+
compiler-version: 18
23+
libclang-version: 19
4024
ignore-errors: false
25+
# Ubuntu 24.04: Use preinstalled GCC 14.2.0, 13.2.0
4126
- os: ubuntu-24.04
4227
compiler: gcc
43-
compiler-version: 10
44-
libclang-version: 18
28+
compiler-version: 14
29+
libclang-version: 19
4530
ignore-errors: false
4631
- os: ubuntu-24.04
4732
compiler: gcc
48-
compiler-version: 9
49-
libclang-version: 18
33+
compiler-version: 13
34+
libclang-version: 19
5035
ignore-errors: false
36+
5137
runs-on: ${{ matrix.os }}
5238
continue-on-error: ${{ matrix.ignore-errors }}
5339

@@ -69,8 +55,9 @@ jobs:
6955
run: |
7056
sudo apt-get install -qy \
7157
clang-${{matrix.compiler-version}} \
72-
libclang1-${{matrix.libclang-version}} \
73-
python3-clang-${{matrix.libclang-version}}
58+
libclang-${{matrix.libclang-version}}-dev \
59+
libclang-rt-${{matrix.libclang-version}}-dev \
60+
llvm-${{matrix.libclang-version}}-dev \
7461
echo "CXX=clang++-${{matrix.compiler-version}}" >> $GITHUB_ENV
7562
echo "CC=clang-${{matrix.compiler-version}}" >> $GITHUB_ENV
7663
@@ -79,8 +66,9 @@ jobs:
7966
run: |
8067
sudo apt-get install -qy \
8168
g++-${{matrix.compiler-version}} \
82-
libclang1-${{matrix.libclang-version}} \
83-
python3-clang-${{matrix.libclang-version}}
69+
libclang-${{matrix.libclang-version}}-dev \
70+
libclang-rt-${{matrix.libclang-version}}-dev \
71+
llvm-${{matrix.libclang-version}}-dev \
8472
echo "CXX=g++-${{matrix.compiler-version}}" >> $GITHUB_ENV
8573
echo "CC=gcc-${{matrix.compiler-version}}" >> $GITHUB_ENV
8674

0 commit comments

Comments
 (0)