]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci/formatting: update to Ubuntu 22.04
authorJason Ish <jason.ish@oisf.net>
Wed, 6 Dec 2023 16:09:47 +0000 (10:09 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Dec 2023 05:59:31 +0000 (06:59 +0100)
Update the formatting CI job to Ubuntu 22.04 to get a newer version of
clang-format, in this case clang-format-14.

.github/workflows/formatting.yml

index ca7b018e36dfd97688b6c62f56ae960b3981c60d..03a8e81169f5b592f1a5ad7b4f9a05613513e75b 100644 (file)
@@ -21,9 +21,9 @@ jobs:
 
   # Checking for correct formatting of branch for C code changes
   check-formatting:
-    name: Formatting Check (clang 9)
-    runs-on: ubuntu-20.04
-    container: ubuntu:20.04
+    name: Formatting Check (clang 14)
+    runs-on: ubuntu-22.04
+    container: ubuntu:22.04
     continue-on-error: false
     steps:
 
@@ -43,6 +43,8 @@ jobs:
                 autoconf \
                 automake \
                 cargo \
+                cbindgen \
+                clang-format-14 \
                 git \
                 libtool \
                 libpcap-dev \
@@ -58,21 +60,14 @@ jobs:
                 libnfnetlink0 \
                 libhiredis-dev \
                 libjansson-dev \
-                libpython2.7 \
                 make \
-                python \
                 rustc \
+                python-is-python3 \
+                python3 \
                 software-properties-common \
                 wget \
                 zlib1g \
                 zlib1g-dev
-      - name: Install packages for clang-format 9
-        run: |
-          # no need to install full clang
-          apt-get install -y clang-format-9
-      - name: Install cbindgen
-        run: cargo install --force --debug --version 0.24.3 cbindgen
-      - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
       # Checking out the branch is not as simple as "checking out".
       #
       # In case master has any new commits since we branched off, github will