@@ -12,68 +12,37 @@ jobs:
1212 build :
1313 strategy :
1414 matrix :
15- version : [14, 19]
15+ llvm- version : [14, 19]
1616 runs-on : ubuntu-latest
1717
1818 steps :
1919
20- - uses : Jarod42/install-premake5@v7
20+ - uses : actions/checkout@v6
21+ with :
22+ submodules : recursive
2123
2224 - name : gcc version
2325 run : |
2426 g++ --version
2527
26- - name : aptget llvm
28+ - name : Install premake & build ccccc
29+ uses : ./.github/actions/build-ccccc
2730 id : LLVM
28- run : |
29- sudo apt-get install clang-${{matrix.version}} libclang-${{matrix.version}}-dev llvm-${{matrix.version}}-dev llvm-${{matrix.version}}-runtime llvm-${{matrix.version}}
30- echo "LLVM_ROOT=/usr/lib/llvm-${{matrix.version}}" >> $GITHUB_OUTPUT
31-
32- - name : DEBUG llvm
33- run : |
34- echo "LLVM_ROOT:" $LLVM_ROOT
35- echo "================ ls $LLVM_ROOT/lib" && ls $LLVM_ROOT/lib
36- echo "================ ls $LLVM_ROOT/bin" && ls $LLVM_ROOT/bin
37- echo "================ llvm-config --cppflags" && $LLVM_ROOT/bin/llvm-config --cppflags
38- echo "================ llvm-config --ldflags" && $LLVM_ROOT/bin/llvm-config --system-libs --ldflags --libs all support
39- env :
40- LLVM_ROOT : ${{steps.LLVM.outputs.LLVM_ROOT}}
41-
42- - uses : actions/checkout@v6
4331 with :
44- submodules : recursive
45-
46- # - name: Build standalone mstch
47- # run: |
48- # mkdir 3rd/mstch/build
49- # cd 3rd/mstch/build
50- # cmake .. && make
51- # sudo make install
32+ llvm-version : ${{ matrix.llvm-version }}
5233
53- - name : premake gmake
54- run : premake5 --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake
55-
56- - name : make config=release
34+ - name : test ccccc
5735 run : |
58- cd project/gmake && make config=release verbose=1
5936 cd ../../bin/gmake/Release
6037 ./ccccc_test
6138 ./ccccc --version
6239 ./ccccc --help
6340
64- # Create compile_commands.json
65- - name : checkout premake-export-compile-commands
66- uses : actions/checkout@v6
67- with :
68- repository : Jarod42/premake-export-compile-commands
69- path : premake-export-compile-commands
70- ref : Improvements
71-
7241 - name : run ccccc on itself
7342 run : |
7443 echo "require 'premake-export-compile-commands/export-compile-commands'" >> premake-system.lua
7544 premake5 --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" --expand-llvm-config export-compile-commands
76- ./bin/gmake/Release/ ccccc --template-file=template/ccccc_html/template.tpl --source-root-url=https://github.com/Jarod42/ccccc/blob/master --exclude-directory=3rd project/export-compile-commands/release/compile_commands.json > index.html
45+ ./ccccc --template-file=template/ccccc_html/template.tpl --source-root-url=https://github.com/Jarod42/ccccc/blob/master --exclude-directory=3rd project/export-compile-commands/release/compile_commands.json > index.html
7746
7847 - name : Upload index.html
7948 uses : actions/upload-artifact@v6
0 commit comments