From d5e4b3ad2bd826a489cc859d60dd01dd8fe9673e Mon Sep 17 00:00:00 2001 From: Damien-Chen Date: Sat, 24 Aug 2024 20:44:39 +0800 Subject: [PATCH] Upgrade to ubuntu-24.04 --- .ci/check-format.sh | 4 ++-- .github/workflows/main.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/check-format.sh b/.ci/check-format.sh index 09b96beb6..e44ccc28d 100755 --- a/.ci/check-format.sh +++ b/.ci/check-format.sh @@ -6,7 +6,7 @@ set -x for file in ${SOURCES}; do - clang-format-14 ${file} > expected-format + clang-format-16 ${file} > expected-format diff -u -p --label="${file}" --label="expected coding style" ${file} expected-format done -exit $(clang-format-14 --output-replacements-xml ${SOURCES} | grep -E -c "") +exit $(clang-format-16 --output-replacements-xml ${SOURCES} | grep -E -c "") diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3a2e1a17..af0874079 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: lab0-c: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: webfactory/ssh-agent@v0.7.0 @@ -31,12 +31,12 @@ jobs: cat scripts/kirby.raw coding-style: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: coding convention run: | - sudo apt-get install -q -y clang-format-14 + sudo apt-get install -q -y clang-format-16 .ci/check-newline.sh .ci/check-format.sh shell: bash