Skip to content

Commit ee3616d

Browse files
committed
Test against ubuntu-24.04
1 parent 9f4fd4d commit ee3616d

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/build.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ on:
99

1010
jobs:
1111
build:
12-
name: build
13-
runs-on: ubuntu-latest
12+
name: build-${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os:
18+
- ubuntu-24.04
19+
- ubuntu-22.04
1420
steps:
1521

1622
- name: checkout

setup.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ curl -f -L --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dea
99
{
1010
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME main"
1111
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME-18 main"
12+
} | sudo tee /etc/apt/sources.list.d/llvm-toolchain.list
13+
14+
if [[ $LSB_CODENAME != "noble" ]]; then
15+
{
1216
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME-17 main"
1317
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME-16 main"
14-
} | sudo tee /etc/apt/sources.list.d/llvm-toolchain.list
18+
} | sudo tee -a /etc/apt/sources.list.d/llvm-toolchain.list
19+
fi
1520

16-
sudo apt update
21+
exec sudo apt update

0 commit comments

Comments
 (0)