Skip to content

Commit ce03811

Browse files
authored
Upgrade to Ubuntu 24.04 (#181)
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.
1 parent bef955a commit ce03811

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.ci/check-format.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -x
66

77
for file in ${SOURCES};
88
do
9-
clang-format-14 ${file} > expected-format
9+
clang-format-16 ${file} > expected-format
1010
diff -u -p --label="${file}" --label="expected coding style" ${file} expected-format
1111
done
12-
exit $(clang-format-14 --output-replacements-xml ${SOURCES} | grep -E -c "</replacement>")
12+
exit $(clang-format-16 --output-replacements-xml ${SOURCES} | grep -E -c "</replacement>")

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
lab0-c:
7-
runs-on: ubuntu-22.04
7+
runs-on: ubuntu-24.04
88
steps:
99
- uses: actions/checkout@v4
1010
- uses: webfactory/[email protected]
@@ -31,12 +31,12 @@ jobs:
3131
cat scripts/kirby.raw
3232
3333
coding-style:
34-
runs-on: ubuntu-22.04
34+
runs-on: ubuntu-24.04
3535
steps:
3636
- uses: actions/checkout@v4
3737
- name: coding convention
3838
run: |
39-
sudo apt-get install -q -y clang-format-14
39+
sudo apt-get install -q -y clang-format-16
4040
.ci/check-newline.sh
4141
.ci/check-format.sh
4242
shell: bash

0 commit comments

Comments
 (0)