Skip to content

Commit 15dba8c

Browse files
committed
CI: Bump Ubuntu to 24.04-LTS
Ubuntu Linux 24.04 (noble) is the latest LTS release, and this commit updates the CI pipeline hosts and recommended development environments accordingly. The version of clang-format is updated to v18, with all C source files re-indented.
1 parent 58ae764 commit 15dba8c

File tree

3 files changed

+532
-68
lines changed

3 files changed

+532
-68
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-12 ${file} > expected-format
9+
clang-format-18 ${file} > expected-format
1010
diff -u -p --label="${file}" --label="expected coding style" ${file} expected-format
1111
done
12-
exit $(clang-format-12 --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")
12+
exit $(clang-format-18 --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")

.github/workflows/main.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on: [push, pull_request]
44

55
jobs:
66
host-x86:
7-
runs-on: ubuntu-22.04
7+
runs-on: ubuntu-24.04
88
strategy:
99
matrix:
10-
compiler: [gcc-12, clang]
10+
compiler: [gcc, clang]
1111
architecture: [arm, riscv]
1212
steps:
1313
- name: checkout code
@@ -25,7 +25,7 @@ jobs:
2525
make check || exit 1
2626
2727
host-arm:
28-
runs-on: ubuntu-22.04
28+
runs-on: ubuntu-24.04
2929
steps:
3030
- name: checkout code
3131
uses: actions/checkout@v4
@@ -37,6 +37,7 @@ jobs:
3737
arch: none
3838
distro: none
3939
base_image: "--platform=linux/arm/v7 arm32v7/ubuntu:22.04"
40+
githubToken: ${{ github.token }}
4041
install: |
4142
apt-get update -q -y
4243
apt-get install -q -y build-essential
@@ -45,12 +46,12 @@ jobs:
4546
make check || exit 1
4647
4748
coding-style:
48-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-24.04
4950
steps:
5051
- uses: actions/checkout@v4
5152
- name: coding convention
5253
run: |
53-
sudo apt-get install -q -y clang-format-12
54+
sudo apt-get install -q -y clang-format-18
5455
.ci/check-newline.sh
5556
.ci/check-format.sh
5657
shell: bash

0 commit comments

Comments
 (0)