github-ci/formatting: update to Ubuntu 22.04

Update the formatting CI job to Ubuntu 22.04 to get a newer version of
clang-format, in this case clang-format-14.
pull/10043/head
Jason Ish 1 year ago committed by Victor Julien
parent 5ebae1e8ed
commit 93071501b5

@ -21,9 +21,9 @@ jobs:
# Checking for correct formatting of branch for C code changes # Checking for correct formatting of branch for C code changes
check-formatting: check-formatting:
name: Formatting Check (clang 9) name: Formatting Check (clang 14)
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
container: ubuntu:20.04 container: ubuntu:22.04
continue-on-error: false continue-on-error: false
steps: steps:
@ -43,6 +43,8 @@ jobs:
autoconf \ autoconf \
automake \ automake \
cargo \ cargo \
cbindgen \
clang-format-14 \
git \ git \
libtool \ libtool \
libpcap-dev \ libpcap-dev \
@ -58,21 +60,14 @@ jobs:
libnfnetlink0 \ libnfnetlink0 \
libhiredis-dev \ libhiredis-dev \
libjansson-dev \ libjansson-dev \
libpython2.7 \
make \ make \
python \
rustc \ rustc \
python-is-python3 \
python3 \
software-properties-common \ software-properties-common \
wget \ wget \
zlib1g \ zlib1g \
zlib1g-dev 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". # Checking out the branch is not as simple as "checking out".
# #
# In case master has any new commits since we branched off, github will # In case master has any new commits since we branched off, github will

Loading…
Cancel
Save