@@ -30,43 +30,34 @@ jobs:
3030
3131 steps :
3232
33- # ccccc build
34- - uses : Jarod42/install-premake5@v7
35-
36- - name : aptget llvm
37- id : LLVM
38- run : |
39- sudo apt-get install clang-${{ inputs.llvm-version }} libclang-${{ inputs.llvm-version }}-dev llvm-${{ inputs.llvm-version }}-dev llvm-${{ inputs.llvm-version }}-runtime llvm-${{ inputs.llvm-version }}
40- echo "LLVM_ROOT=/usr/lib/llvm-${{ inputs.llvm-version }}" >> $GITHUB_OUTPUT
41-
4233 - name : checkout ccccc
4334 uses : actions/checkout@v6
4435 with :
4536 submodules : recursive
46- repository : Jarod42/ccccc
47- path : ccccc
4837
49- - name : premake gmake
50- run : |
51- cd ccccc
52- premake5 --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake
53-
54- - name : make config=release
55- run : |
56- cd ccccc/project/gmake
57- make config=release verbose=1
38+ - name : Install premake & build ccccc
39+ uses : ./.github/actions/build-ccccc
40+ with :
41+ llvm-version : ${{ inputs.llvm-version }}
5842
59- # WxWidgets
60- - name : install dependencies for wxWidgets
61- run : sudo apt-get install build-essential cmake git libedit-dev libgtk-3-dev libhunspell-dev libsqlite3-dev libssh-dev pkg-config xterm
43+ # Codelite (with WxWidgets)
44+ - name : Checkout Codelite
45+ uses : actions/checkout@v6
46+ with :
47+ repository : eranif/codelite
48+ submodules : recursive
49+ path : codelite
6250
6351 - name : Checkout WxWidgets
6452 uses : actions/checkout@v6
6553 with :
6654 repository : wxWidgets/wxWidgets
6755 ref : ${{ inputs.wx-version }}
6856 submodules : recursive
69- path : codelite/wxWidgets
57+ path : codelite/wxWidgets
58+
59+ - name : install dependencies for
60+ run : sudo apt-get install build-essential cmake git libedit-dev libgtk-3-dev libhunspell-dev libsqlite3-dev libssh-dev pkg-config xterm libpcre2-dev libsqlite3-dev libssh-dev bison flex
7061
7162 - name : build and install wxWidgets
7263 run : |
@@ -75,33 +66,25 @@ jobs:
7566 ../configure --disable-debug_flag --with-gtk=3 --enable-stl
7667 make -j$(nproc) && sudo make install
7768
78- # Codelite
79- - name : install Codelite's dependencies
80- run : sudo apt-get install build-essential cmake git libpcre2-dev libsqlite3-dev libssh-dev bison flex
81-
82- - name : Checkout Codelite
83- uses : actions/checkout@v6
84- with :
85- repository : eranif/codelite
86- submodules : recursive
87- path : codelite
88-
89- - name : build, test and install Codelite
69+ - name : build Codelite
9070 run : |
9171 mkdir codelite/build-release
9272 cd codelite/build-release
93- cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1 -DBUILD_TESTING=1 ${{ inputs.codelite-options }}
73+ cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1 ${{ inputs.codelite-options }}
9474 make -j$(nproc)
95- sudo make install
96- ctest --output-on-failure
9775
98- - name : codelite --version
99- run : xvfb-run -a codelite --version || exit 0 # codelite --version returns -1
76+ - name : get codelite sha1
77+ id : codelite_sha1
78+ run : |
79+ cd maxr
80+ echo "sha1=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
10081
10182 # ccccc runs
10283 - name : run ccccc on Codelite
84+ env :
85+ CODELITE_SHA1 : ${{steps.codelite_sha1.outputs.sha1}}
10386 run : |
104- ccccc/bin/gmake/Release/ ccccc --exclude-directory=codelite/build-release --exclude-directory=codelite/submodules --exclude-directory=codelite/sdk --template-file=ccccc/ template/ccccc_html/template.tpl --source-root- url=https://github.com/eranif/codelite/blob/master codelite/build-release/compile_commands.json > codelite-index.html
87+ ./ ccccc --exclude-directory=codelite/build-release --exclude-directory=codelite/submodules --exclude-directory=codelite/sdk --template-file=template/ccccc_html/template.tpl --source-root=codelite --source-root- url=https://github.com/eranif/codelite/blob/$CODELITE_SHA1 codelite/build-release/compile_commands.json > codelite-index.html
10588
10689 - name : Upload index.html
10790 uses : actions/upload-artifact@v6
0 commit comments