From 1c916a79a9083147f5e8ae4cd94fc8f27c2b8fa0 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Sat, 10 Dec 2022 06:21:02 +0800 Subject: [PATCH] CI: Bump validation host versioning The CI is now running on Ubuntu 22.04-LTS along with gcc-11 and clang-format-12 . --- .ci/check-format.sh | 2 +- .ci/static-analysis.sh | 4 ++-- .github/workflows/status-check.yaml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ci/check-format.sh b/.ci/check-format.sh index caf16e8..d97a3a8 100755 --- a/.ci/check-format.sh +++ b/.ci/check-format.sh @@ -2,7 +2,7 @@ SOURCES=$(find $(git rev-parse --show-toplevel) | egrep "\.(cpp|cc|c|h)\$") -CLANG_FORMAT=$(which clang-format-11) +CLANG_FORMAT=$(which clang-format-12) if [ $? -ne 0 ]; then CLANG_FORMAT=$(which clang-format) if [ $? -ne 0 ]; then diff --git a/.ci/static-analysis.sh b/.ci/static-analysis.sh index 841c43f..148e388 100755 --- a/.ci/static-analysis.sh +++ b/.ci/static-analysis.sh @@ -63,9 +63,9 @@ function do_sparse() function do_gcc() { - local GCC=$(which gcc-10) + local GCC=$(which gcc-11) if [ $? -ne 0 ]; then - echo "[!] gcc-10 is not installed. Failed to run static analysis with GCC." >&2 + echo "[!] gcc-11 is not installed. Failed to run static analysis with GCC." >&2 exit 1 fi diff --git a/.github/workflows/status-check.yaml b/.github/workflows/status-check.yaml index d471775..f0bb956 100644 --- a/.github/workflows/status-check.yaml +++ b/.github/workflows/status-check.yaml @@ -10,15 +10,15 @@ on: jobs: validate: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout code uses: actions/checkout@v3.1.0 - name: validate coding style and functionality run: | - sudo apt-get install -q -y clang-format-11 + sudo apt-get install -q -y clang-format-12 sudo apt-get install -q -y cppcheck - sudo apt-get install -q -y gcc-10 + sudo apt-get install -q -y gcc-11 .ci/check-format.sh .ci/static-analysis.sh .ci/build-n-run.sh