@@ -5,6 +5,18 @@ on: push
55permissions :
66 contents : write
77
8+ x-llvm-install : &llvm-install
9+ name : Install LLVM
10+ run : |
11+ wget https://apt.llvm.org/llvm.sh
12+ chmod +x llvm.sh
13+ sudo ./llvm.sh 22
14+ sudo apt-get update
15+ sudo apt-get install -y clang-format-22 clang-tidy-22
16+ clang-22 --version
17+ clang-format-22 --version
18+ clang-tidy-22 --version
19+
820jobs :
921 library_checker_aizu :
1022 runs-on : ubuntu-latest
@@ -35,35 +47,17 @@ jobs:
3547 runs-on : ubuntu-latest
3648 steps :
3749 - uses : actions/checkout@v4
38- - name : Install LLVM
39- run : |
40- wget https://apt.llvm.org/llvm.sh
41- chmod +x llvm.sh
42- sudo ./llvm.sh 22
50+ - *llvm-install
4351 - name : Install dependencies
44- run : sudo apt install -y clang-format-22 cppcheck
45- - name : Verify
46- run : |
47- clang-22 --version
48- clang-format-22 --version
52+ run : sudo apt install -y cppcheck
4953 - name : grep, clang-format, cppcheck
5054 run : make --directory=tests/ grep_clangformat_cppcheck
5155
5256 clangtidy :
5357 runs-on : ubuntu-latest
5458 steps :
5559 - uses : actions/checkout@v4
56- - name : Install LLVM
57- run : |
58- wget https://apt.llvm.org/llvm.sh
59- chmod +x llvm.sh
60- sudo ./llvm.sh 22
61- - name : Install dependencies
62- run : sudo apt install -y clang-tidy-22
63- - name : Verify
64- run : |
65- clang-22 --version
66- clang-tidy-22 --version
60+ - *llvm-install
6761 - name : clang-tidy
6862 run : make --directory=tests/ clangtidy
6963
7872 runs-on : ubuntu-latest
7973 steps :
8074 - uses : actions/checkout@v4
81- - name : Install LLVM
82- run : |
83- wget https://apt.llvm.org/llvm.sh
84- chmod +x llvm.sh
85- sudo ./llvm.sh 22
86- - name : Verify
87- run : |
88- clang-22 --version
75+ - *llvm-install
8976 - name : g++ with clang
9077 run : make --directory=tests/ compile_clang
9178
@@ -100,17 +87,9 @@ jobs:
10087 runs-on : ubuntu-latest
10188 steps :
10289 - uses : actions/checkout@v4
90+ - *llvm-install
10391 - name : Install texlive, rename, nodejs, npm
104- run : |
105- sudo apt install texlive texlive-latex-extra rename nodejs npm
106- - name : Install LLVM
107- run : |
108- wget https://apt.llvm.org/llvm.sh
109- chmod +x llvm.sh
110- sudo ./llvm.sh 22
111- - name : Verify
112- run : |
113- clang-22 --version
92+ run : sudo apt install texlive texlive-latex-extra rename nodejs npm
11493 - name : build pdf
11594 run : make --directory=tests/ build_pdf
11695 - uses : actions/upload-artifact@v4
@@ -142,17 +121,7 @@ jobs:
142121 if : github.ref == 'refs/heads/dev' && github.event_name == 'push'
143122 steps :
144123 - uses : actions/checkout@v4
145- - name : Install LLVM
146- run : |
147- wget https://apt.llvm.org/llvm.sh
148- chmod +x llvm.sh
149- sudo ./llvm.sh 22
150- - name : Install dependencies
151- run : sudo apt install -y clang-format-22 cppcheck
152- - name : Verify
153- run : |
154- clang-22 --version
155- clang-format-22 --version
124+ - *llvm-install
156125 - name : Combine includes and force push to main branch
157126 run : |
158127 git config --local user.name github-actions
0 commit comments