From ee3616d07e2400f8fa480096389bf7db49b994bf Mon Sep 17 00:00:00 2001 From: Cheng Shao Date: Tue, 14 May 2024 17:05:07 +0000 Subject: [PATCH] Test against ubuntu-24.04 --- .github/workflows/build.yml | 10 ++++++++-- setup.sh | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e7dd6c..0e1fb2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,8 +9,14 @@ on: jobs: build: - name: build - runs-on: ubuntu-latest + name: build-${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-24.04 + - ubuntu-22.04 steps: - name: checkout diff --git a/setup.sh b/setup.sh index ac6bc09..d3fc6ab 100755 --- a/setup.sh +++ b/setup.sh @@ -9,8 +9,13 @@ curl -f -L --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dea { echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME main" echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME-18 main" +} | sudo tee /etc/apt/sources.list.d/llvm-toolchain.list + +if [[ $LSB_CODENAME != "noble" ]]; then +{ echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME-17 main" echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] https://apt.llvm.org/$LSB_CODENAME llvm-toolchain-$LSB_CODENAME-16 main" -} | sudo tee /etc/apt/sources.list.d/llvm-toolchain.list +} | sudo tee -a /etc/apt/sources.list.d/llvm-toolchain.list +fi -sudo apt update +exec sudo apt update