@@ -192,38 +192,27 @@ jobs:
192192 working-directory : ${{github.workspace}}/build
193193 run : make test ARGS=-V
194194
195- - name : Parse CodeCompass Postgresql
196- if : ${{ matrix.db == 'postgresql' }}
197- run : >
198- mkdir $HOME/ws_pgsql
199-
200- ${{github.workspace}}/${{ matrix.os }}/${{ matrix.db }}/install/bin/CodeCompass_parser
201- -d "pgsql:host=localhost;port=5432;user=postgres;password=postgres;database=codecompass"
202- -w $HOME/ws_pgsql/
203- -n "CodeCompass"
204- -i ${{github.workspace}}
205- -i ${{github.workspace}}/build/compile_commands.json
206- -j $(nproc)
207-
208- - name : Parse CodeCompass SQLite3
209- if : ${{ matrix.db == 'sqlite3' }}
210- run : >
211- mkdir $HOME/ws_pgsql
212-
213- ${{github.workspace}}/${{ matrix.os }}/${{ matrix.db }}/install/bin/CodeCompass_parser
214- -d "sqlite:database=$HOME/codecompass.sqlite"
215- -w $HOME/ws_pgsql/
216- -n "CodeCompass"
217- -i ${{github.workspace}}
218- -i ${{github.workspace}}/build/compile_commands.json
219- -j $(nproc)
220-
221195 - name : Archive CodeCompass binaries
222196 uses : actions/upload-artifact@v2
223197 with :
224198 name : codecompass-${{ matrix.os }}-${{ matrix.db }}-bin
225199 path : ${{github.workspace}}/${{ matrix.os }}/${{ matrix.db }}/install
226200
201+ - name : Archive CodeCompass compile-time source files
202+ uses : actions/upload-artifact@v2
203+ with :
204+ name : codecompass-${{ matrix.os }}-${{ matrix.db }}-compiletime
205+ path : |
206+ ${{github.workspace}}/build/**/*.c
207+ ${{github.workspace}}/build/**/*.h
208+ ${{github.workspace}}/build/**/*.cpp
209+ ${{github.workspace}}/build/**/*.hpp
210+ ${{github.workspace}}/build/**/*.cxx
211+ ${{github.workspace}}/build/**/*.hxx
212+ ${{github.workspace}}/build/**/*.ixx
213+ ${{github.workspace}}/build/**/*.js
214+ ${{github.workspace}}/build/**/compile_commands.json
215+
227216 parse :
228217 needs : build
229218 strategy :
@@ -255,13 +244,16 @@ jobs:
255244 - 5432:5432
256245
257246 steps :
247+ - uses : actions/checkout@v2
248+
258249 # Ubuntu 18.04 commands
259250 - name : Install required packages Ubuntu 18
260251 if : ${{ matrix.os == 'ubuntu-18.04' }}
261252 run : >
262- sudo apt-get install -y git cmake make g++ gcc-7-plugin-dev libboost-all-dev
263- llvm-10-dev clang-10 libclang-10-dev default-jdk libssl1.0-dev
264- libmagic-dev libgit2-dev ctags
253+ sudo apt-get install -y git cmake make g++ gcc-7-plugin-dev libgraphviz-dev
254+ libboost-filesystem-dev libboost-log-dev libboost-program-options-dev
255+ llvm-10-dev clang-10 libclang-10-dev default-jre libssl1.0-dev libmagic-dev
256+ libgit2-dev ctags libgtest-dev
265257
266258 - name : Install Postgresql Ubuntu 18
267259 if : ${{ matrix.os == 'ubuntu-18.04' && matrix.db == 'postgresql' }}
@@ -297,9 +289,10 @@ jobs:
297289 - name : Install required packages Ubuntu 20
298290 if : ${{ matrix.os == 'ubuntu-20.04' }}
299291 run : >
300- sudo apt-get install -y git cmake make g++ libboost-all-dev llvm-10-dev
301- clang-10 libclang-10-dev odb libodb-dev libthrift-dev default-jdk
302- libssl-dev libmagic-dev libgit2-dev ctags
292+ sudo apt-get install -y git cmake make g++ libboost-filesystem-dev
293+ libboost-log-dev libboost-program-options-dev llvm-10-dev clang-10
294+ libclang-10-dev libgraphviz-dev libgtest-dev odb libodb-dev
295+ libthrift-dev default-jre libssl1.1 libmagic-dev libgit2-dev ctags
303296
304297 - name : Install Postgresql Ubuntu 20
305298 if : ${{ matrix.os == 'ubuntu-20.04' && matrix.db == 'postgresql' }}
@@ -314,9 +307,17 @@ jobs:
314307 uses : actions/download-artifact@v2
315308 with :
316309 name : codecompass-${{ matrix.os }}-${{ matrix.db }}-bin
310+ path : ${{github.workspace}}/install
317311
318- - name : Add execute right to parser
319- run : chmod +x ${{github.workspace}}/bin/CodeCompass_parser
312+ - name : Download CodeCompass compile-time source files
313+ uses : actions/download-artifact@v2
314+ with :
315+ name : codecompass-${{ matrix.os }}-${{ matrix.db }}-compiletime
316+ path : ${{github.workspace}}/build
317+
318+ - name : Add execute right to parser and move source files
319+ run : |
320+ chmod +x ${{github.workspace}}/install/bin/CodeCompass_parser
320321
321322 # Parsing with Postgresql
322323 - name : Parse TinyXML Postgresql
@@ -327,9 +328,20 @@ jobs:
327328 mkdir build_tinyxml2 && cd build_tinyxml2
328329 cmake $HOME/tinyxml2 -DCMAKE_EXPORT_COMPILE_COMMANDS=1
329330 make -j $(nproc)
330- cd ${{github.workspace}}/bin
331+ cd ${{github.workspace}}/install/ bin
331332 ./CodeCompass_parser -d "pgsql:host=localhost;port=5432;user=postgres;password=postgres;database=tinyxml2" -w $HOME/ws_pgsql/ -n TinyXML2 -i $HOME/tinyxml2 -i $HOME/build_tinyxml2/compile_commands.json -j $(nproc)
332333
334+ - name : Parse CodeCompass Postgresql
335+ if : ${{ matrix.db == 'postgresql' }}
336+ run : >
337+ ${{github.workspace}}/install/bin/CodeCompass_parser
338+ -d "pgsql:host=localhost;port=5432;user=postgres;password=postgres;database=codecompass"
339+ -w $HOME/ws_pgsql/
340+ -n "CodeCompass"
341+ -i ${{github.workspace}}
342+ -i ${{github.workspace}}/build/compile_commands.json
343+ -j $(nproc)
344+
333345 - name : Parse Xerces-C Postgresql
334346 if : ${{ matrix.db == 'postgresql' }}
335347 run : |
@@ -338,7 +350,7 @@ jobs:
338350 mkdir build_xerces-c && cd build_xerces-c
339351 cmake $HOME/xerces-c -DCMAKE_EXPORT_COMPILE_COMMANDS=1
340352 make -j $(nproc)
341- cd ${{github.workspace}}/bin
353+ cd ${{github.workspace}}/install/ bin
342354 ./CodeCompass_parser -d "pgsql:host=localhost;port=5432;user=postgres;password=postgres;database=xerces_c" -w $HOME/ws_pgsql/ -n "Xerces-C" -i $HOME/xerces-c -i $HOME/build_xerces-c/compile_commands.json -j $(nproc)
343355
344356 # Parsing with SQLite3
@@ -350,9 +362,20 @@ jobs:
350362 mkdir build_tinyxml2 && cd build_tinyxml2
351363 cmake $HOME/tinyxml2 -DCMAKE_EXPORT_COMPILE_COMMANDS=1
352364 make -j $(nproc)
353- cd ${{github.workspace}}/bin
365+ cd ${{github.workspace}}/install/ bin
354366 ./CodeCompass_parser -d "sqlite:database=$HOME/tinyxml2.sqlite" -w $HOME/ws_pgsql/ -n TinyXML2 -i $HOME/tinyxml2 -i $HOME/build_tinyxml2/compile_commands.json -j $(nproc)
355367
368+ - name : Parse CodeCompass SQLite3
369+ if : ${{ matrix.db == 'sqlite3' }}
370+ run : >
371+ ${{github.workspace}}/install/bin/CodeCompass_parser
372+ -d "sqlite:database=$HOME/codecompass.sqlite"
373+ -w $HOME/ws_pgsql/
374+ -n "CodeCompass"
375+ -i ${{github.workspace}}
376+ -i ${{github.workspace}}/build/compile_commands.json
377+ -j $(nproc)
378+
356379 - name : Parse Xerces-C SQLite3
357380 if : ${{ matrix.db == 'sqlite3' }}
358381 run : |
@@ -361,5 +384,5 @@ jobs:
361384 mkdir build_xerces-c && cd build_xerces-c
362385 cmake $HOME/xerces-c -DCMAKE_EXPORT_COMPILE_COMMANDS=1
363386 make -j $(nproc)
364- cd ${{github.workspace}}/bin
387+ cd ${{github.workspace}}/install/ bin
365388 ./CodeCompass_parser -d "sqlite:database=$HOME/xerces.sqlite" -w $HOME/ws_pgsql/ -n "Xerces-C" -i $HOME/xerces-c -i $HOME/build_xerces-c/compile_commands.json -j $(nproc)
0 commit comments