@@ -4,7 +4,7 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
detect-code-related-file-changes :
7
- runs-on : ubuntu-22 .04
7
+ runs-on : ubuntu-24 .04
8
8
outputs :
9
9
has_code_related_changes : ${{ steps.set_has_code_related_changes.outputs.has_code_related_changes }}
10
10
steps :
36
36
host-x64 :
37
37
needs : [detect-code-related-file-changes]
38
38
if : needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
39
- runs-on : ubuntu-22 .04
39
+ runs-on : ubuntu-24 .04
40
40
steps :
41
41
- uses : actions/checkout@v4
42
42
- name : install-dependencies
46
46
.ci/riscv-toolchain-install.sh
47
47
wget https://apt.llvm.org/llvm.sh
48
48
sudo chmod +x ./llvm.sh
49
- sudo ./llvm.sh 17
49
+ sudo ./llvm.sh 18
50
50
shell : bash
51
51
- name : default build
52
52
run : make
65
65
make distclean && make ENABLE_SDL=0 check -j$(nproc)
66
66
- name : gdbstub test
67
67
run : |
68
+ DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt-get -y install tzdata # without this, the following installation will require manual intervention to set tzdata
69
+ sudo apt install software-properties-common -y
70
+ sudo add-apt-repository ppa:deadsnakes/ppa
71
+ sudo apt update
72
+ sudo apt install libpython3.10 -y # due to the fact that the riscv-gnu-toolchain releases are built for ubuntu 22.04, its dependencies is python3.10
68
73
make distclean ENABLE_GDBSTUB=1 gdbstub-test
69
74
- name : JIT test
70
75
run : |
80
85
host-arm64 :
81
86
needs : [detect-code-related-file-changes]
82
87
if : needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
83
- runs-on : ubuntu-22 .04
88
+ runs-on : ubuntu-24 .04
84
89
steps :
85
90
- name : checkout code
86
91
uses : actions/checkout@v4
@@ -100,7 +105,7 @@ jobs:
100
105
git config --global --add safe.directory ${{ github.workspace }}/src/mini-gdbstub
101
106
wget https://apt.llvm.org/llvm.sh
102
107
chmod +x ./llvm.sh
103
- ./llvm.sh 17
108
+ ./llvm.sh 18
104
109
# Append custom commands here
105
110
run : |
106
111
make -j$(nproc)
@@ -113,12 +118,12 @@ jobs:
113
118
coding-style :
114
119
needs : [detect-code-related-file-changes]
115
120
if : needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
116
- runs-on : ubuntu-22 .04
121
+ runs-on : ubuntu-24 .04
117
122
steps :
118
123
- uses : actions/checkout@v4
119
124
- name : coding convention
120
125
run : |
121
- sudo apt-get install -q -y clang-format-12
126
+ sudo apt-get install -q -y clang-format-18
122
127
.ci/check-newline.sh
123
128
.ci/check-format.sh
124
129
shell : bash
@@ -136,7 +141,7 @@ jobs:
136
141
sudo apt-get install -q -y clang clang-tools libsdl2-dev libsdl2-mixer-dev
137
142
wget https://apt.llvm.org/llvm.sh
138
143
chmod +x ./llvm.sh
139
- sudo ./llvm.sh 17
144
+ sudo ./llvm.sh 18
140
145
shell : bash
141
146
- name : run scan-build without JIT
142
147
run : make distclean && scan-build -v -o ~/scan-build --status-bugs --use-cc=clang --force-analyze-debug-code --show-description -analyzer-config stable-report-filename=true -enable-checker valist,nullability make ENABLE_EXT_F=0 ENABLE_SDL=0 ENABLE_JIT=0
@@ -163,7 +168,7 @@ jobs:
163
168
docker-hub-build-and-publish :
164
169
needs : [detect-code-related-file-changes]
165
170
if : needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
166
- runs-on : ubuntu-22 .04
171
+ runs-on : ubuntu-24 .04
167
172
steps :
168
173
- name : Check out the repo
169
174
uses : actions/checkout@v4
0 commit comments