Skip to content

Commit

Permalink
Upgrade to Ubuntu 24.04 (#181)
Browse files Browse the repository at this point in the history
The clang-format version 16 shipped with Ubuntu Linux 22.04, the latest
long-term support system, is known to indent existing C code in a way
compatible with that indented by clang-format version 14, meaning that
an upgrade in the CI pipeline can ensure compatibility of clang-format.
  • Loading branch information
Damien-Chen authored Aug 25, 2024
1 parent bef955a commit ce03811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .ci/check-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "</replacement>")
exit $(clang-format-16 --output-replacements-xml ${SOURCES} | grep -E -c "</replacement>")
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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

0 comments on commit ce03811

Please sign in to comment.