Skip to content

Commit 7e5e485

Browse files
committed
Update CI to test on Ubuntu 24.04 and newer compilers
1 parent b3ad63f commit 7e5e485

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/accparser.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,32 @@ jobs:
1212
build-llvm:
1313
strategy:
1414
matrix:
15-
os: [ubuntu-20.04]
16-
llvm: [9, 10, 11, 12, 13, 14]
15+
os: [ubuntu-24.04]
16+
llvm: [17, 18, 19, 20]
1717

1818
runs-on: ${{ matrix.os }}
1919
env:
2020
CC: /usr/bin/clang-${{ matrix.llvm }}
2121
CXX: /usr/bin/clang++-${{ matrix.llvm }}
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
25+
# NOTE: Ubuntu 24.04 ships antlr4 v4.9 but antlr4-cpp-runtime v4.10, which are API-incompatible; manually install the matching antlr4 v4.10.
26+
- uses: StoneMoe/setup-antlr4@v4.10.1
2527

2628
- name: Add LLVM repository key
2729
run: |
2830
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
2931
30-
- name: Add LLVM repository on Ubuntu 20.04
31-
if: ${{ matrix.os == 'ubuntu-20.04' }}
32+
- name: Add LLVM repository on Ubuntu 24.04
33+
if: ${{ matrix.os == 'ubuntu-24.04' }}
3234
run: |
33-
sudo add-apt-repository -y 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-${{ matrix.llvm }} main'
35+
sudo add-apt-repository -y 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${{ matrix.llvm }} main'
3436
3537
- name: Install dependencies
3638
run: |
3739
sudo apt-get update
3840
sudo apt-get install -y \
39-
antlr4 \
4041
libantlr4-runtime-dev \
4142
build-essential \
4243
clang-${{ matrix.llvm }} \
@@ -59,23 +60,23 @@ jobs:
5960
build-gnu:
6061
strategy:
6162
matrix:
62-
os: [ubuntu-20.04]
63-
gnu: [7, 8, 9, 10, 11]
63+
os: [ubuntu-24.04]
64+
gnu: [9, 10, 11, 12, 13, 14]
6465

6566
runs-on: ${{ matrix.os }}
6667
env:
6768
CC: /usr/bin/gcc-${{ matrix.gnu }}
6869
CXX: /usr/bin/g++-${{ matrix.gnu }}
6970

7071
steps:
71-
- uses: actions/checkout@v2
72+
- uses: actions/checkout@v4
73+
- uses: StoneMoe/setup-antlr4@v4.10.1
7274

7375
- name: Install dependencies
7476
run: |
7577
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
7678
sudo apt-get update
7779
sudo apt-get install -y \
78-
antlr4 \
7980
libantlr4-runtime-dev \
8081
build-essential \
8182
cmake \

0 commit comments

Comments
 (0)