Update build debug info post action

This commit is contained in:
larzie 2024-11-08 13:10:46 +03:00 committed by GitHub
parent ba601d8855
commit 8903fa0dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
name: Prepare for Build Debug Info
name: Prepare for Build Debug Info
description: Provides debug info for the build process
inputs:
@ -16,7 +16,15 @@ runs:
cd build
sed 's/\\\\/\//g' compile_commands.json | sed 's/D:\//\/d\//' > uni_compile_commands.json
pip install compile-commands --break-system-packages
compile-commands --file=uni_compile_commands.json --filter_files='.*info\.rc.*' --filter='(.*) -o (.*)((?:/|\\).*)\.(?:obj|o) -c (.*)' --replacement="$BASH"' --noprofile --norc -c "mkdir -p ../build-debug-info-preprocessed/\g<2> && \g<1> -o ../build-debug-info-preprocessed/\g<2>\g<3>.i -E \g<4>"' -o ../build-debug-info/preprocess_commands.json --run --verbose
compile-commands --file=uni_compile_commands.json \
--filter_files='.*info\.rc.*' \
--filter='(.*) -o (.*)((?:/|\\).*)\.(?:obj|o) -c (.*)' \
--replacement="$BASH" \
--noprofile --norc -c "\
mkdir -p ../build-debug-info-preprocessed/\g<2> && \
\g<1> -o ../build-debug-info-preprocessed/\g<2>\g<3>.i -E \g<4>"' \
-o ../build-debug-info/preprocess_commands.json \
--run --verbose
- name: Upload Build Debug Info
uses: actions/upload-artifact@v4