Skip to content

Commit ca9dea0

Browse files
committed
Updated Ubuntu GitHub action to LLVM 18 (#296)
1 parent 7079f0f commit ca9dea0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626

2727
jobs:
2828
build-ubuntu:
29-
runs-on: ubuntu-22.04
29+
runs-on: ubuntu-24.04
3030
steps:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
@@ -37,17 +37,13 @@ jobs:
3737
with:
3838
max-size: "2000M"
3939
- name: Install deps
40-
run: sudo apt -y install git make pkg-config gcc-11 g++-11 ccache cmake libyaml-cpp-dev llvm-15 clang-15 libclang-15-dev libclang-cpp15-dev clang-format-15 lcov zlib1g-dev libunwind-dev libdw-dev gnustep-back-common libgnustep-base-dev gnustep-make
41-
- name: Select g++ version
42-
run: |
43-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
44-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
40+
run: sudo apt -y install git make ninja-build pkg-config gcc g++ ccache cmake libyaml-cpp-dev llvm-18 clang-18 libclang-18-dev libclang-cpp18-dev clang-format-18 lcov zlib1g-dev libunwind-dev libdw-dev gnustep-back-common libgnustep-base-dev gnustep-make
4541
- name: Check code formatting
4642
run: |
4743
make check-formatting
4844
- name: Build and unit test
4945
run: |
50-
NUMPROC=2 CODE_COVERAGE=ON LLVM_VERSION=15 ENABLE_OBJECTIVE_C_TEST_CASES=ON FETCH_LIBOBJC2=ON make test
46+
CC=/usr/bin/clang-18 CXX=/usr/bin/clang++-18 LLVM_VERSION=18 NUMPROC=2 CMAKE_GENERATOR=Ninja CODE_COVERAGE=ON LLVM_VERSION=18 ENABLE_CXX_MODULES_TEST_CASES=ON ENABLE_CUDA_TEST_CASES=OFF ENABLE_OBJECTIVE_C_TEST_CASES=ON FETCH_LIBOBJC2=ON CLANG_UML_ENABLE_BACKTRACE=ON make test
5147
- name: Run coverage
5248
run: |
5349
lcov -c -d debug -o coverage.info

0 commit comments

Comments
 (0)