1- name : " CMake "
1+ name : " Building and testing ArkScript "
22
33on :
44 push :
55 branches : [dev, master]
66 paths-ignore :
7- - ' .github/workflows/clang-format.yml'
87 - ' .github/workflows/docker.yml'
98 - ' .github/workflows/label.yml'
109 - ' .github/workflows/lizard.yml'
1110 - ' .github/workflows/release.yml'
12- - ' .github/workflows/repo-visualizer.yml'
1311 - ' .vscode/*.*'
1412 - ' examples/*.ark'
1513 - ' images/*.*'
2725 SQLITE_VERSION : 3390100 # 3.39.1
2826
2927jobs :
28+ check :
29+ name : Formatting check
30+ runs-on : ubuntu-latest
31+
32+ strategy :
33+ matrix :
34+ path :
35+ - ' src'
36+ - ' include'
37+
38+ steps :
39+ - uses : actions/checkout@v3
40+
41+ - name : Run clang-format check for C++
42+ uses : HorstBaerbel/action-clang-format@master
43+ with :
44+ scandir : ${{ matrix.path }}
45+ style : ' file'
46+
47+ repo_visualizer :
48+ runs-on : ubuntu-latest
49+ needs : []
50+
51+ steps :
52+ - name : Checkout code
53+ uses : actions/checkout@v3
54+
55+ - name : Update diagram
56+ uses : githubocto/repo-visualizer@main
57+ with :
58+ excluded_paths : ' dist,node_modules,submodules'
59+ should_push : false
60+ output_file : ' diagram.svg'
61+ artifact_name : ' diagram'
62+
3063 build :
3164 runs-on : ${{ matrix.config.os }}
3265 name : ${{ matrix.config.name }}
66+ needs : [check]
3367
3468 strategy :
3569 fail-fast : false
87121 }
88122
89123 steps :
90- - uses : actions/checkout@v2
124+ - uses : actions/checkout@v3
91125 with :
92126 submodules : recursive
93127
@@ -192,13 +226,13 @@ jobs:
192226 cp -r tests/cpp temp/
193227
194228 - name : Upload artifact
195- uses : actions/upload-artifact@v2
229+ uses : actions/upload-artifact@v3.1.1
196230 with :
197231 name : ${{ matrix.config.artifact }}
198232 path : artifact
199233
200234 - name : Upload temp artifact
201- uses : actions/upload-artifact@v2
235+ uses : actions/upload-artifact@v3.1.1
202236 with :
203237 name : temp-${{ matrix.config.artifact }}
204238 path : temp
@@ -225,20 +259,20 @@ jobs:
225259 - { os: macos-latest, name: "MacOS Clang 12", artifact: "macos-clang-12", }
226260
227261 steps :
228- - uses : actions/checkout@v2
262+ - uses : actions/checkout@v3
229263 with :
230264 submodules : recursive
231265
232266 - name : Download artifact
233267 id : download
234- uses : actions/download-artifact@v2
268+ uses : actions/download-artifact@v3.0.1
235269 with :
236270 name : ${{ matrix.config.artifact }}
237271 path : build
238272
239273 - name : Download temp artifact
240274 id : download-artifact
241- uses : actions/download-artifact@v2
275+ uses : actions/download-artifact@v3.0.1
242276 with :
243277 name : temp-${{ matrix.config.artifact }}
244278 path : artifact
@@ -276,13 +310,13 @@ jobs:
276310 needs : [build]
277311
278312 steps :
279- - uses : actions/checkout@v2
313+ - uses : actions/checkout@v3
280314 with :
281315 submodules : recursive
282316
283317 - name : Download artifact
284318 id : download
285- uses : actions/download-artifact@v2
319+ uses : actions/download-artifact@v3.0.1
286320 with :
287321 name : " ubuntu-clang-11-valgrind"
288322 path : build
0 commit comments