Skip to content

Commit

Permalink
ci: update clang-format to version 14
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jul 10, 2023
1 parent cb01918 commit 3f2c835
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,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:

Expand Down Expand Up @@ -54,18 +54,18 @@ jobs:
libnfnetlink0 \
libhiredis-dev \
libjansson-dev \
libpython2.7 \
libpython3.10 \
make \
python \
python3 \
rustc \
software-properties-common \
wget \
zlib1g \
zlib1g-dev
- name: Install packages for clang-format 9
- name: Install packages for clang-format 14
run: |
# no need to install full clang
apt-get install -y clang-format-9
apt-get install -y clang-format-14
- name: Install cbindgen
run: cargo install --force --debug --version 0.24.3 cbindgen
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-clang-format-custom
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Copy of https://github.com/llvm-mirror/clang/blob/master/tools/clang-format/git-clang-format
# Adds a --diffstat option to show the files needing formatting.
# This change will be upstreamed, but the current git-clang-format does not
Expand Down

0 comments on commit 3f2c835

Please sign in to comment.