mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -05:00
Update build debug info post action
This commit is contained in:
parent
ba601d8855
commit
8903fa0dff
1 changed files with 29 additions and 21 deletions
50
.github/actions/build-debug-info-post/action.yml
vendored
50
.github/actions/build-debug-info-post/action.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Prepare for Build Debug Info
|
name: Prepare for Build Debug Info
|
||||||
description: Provides debug info for the build process
|
description: Provides debug info for the build process
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -9,25 +9,33 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Preprocess
|
- name: Preprocess
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir build-debug-info-preprocessed
|
mkdir build-debug-info-preprocessed
|
||||||
cd build
|
cd build
|
||||||
sed 's/\\\\/\//g' compile_commands.json | sed 's/D:\//\/d\//' > uni_compile_commands.json
|
sed 's/\\\\/\//g' compile_commands.json | sed 's/D:\//\/d\//' > uni_compile_commands.json
|
||||||
pip install compile-commands --break-system-packages
|
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
|
- name: Upload Build Debug Info
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-build-debug-info-${{ inputs.target }}
|
name: geode-build-debug-info-${{ inputs.target }}
|
||||||
path: ./build-debug-info/*
|
path: ./build-debug-info/*
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
|
|
||||||
- name: Upload Preprocessed Files
|
- name: Upload Preprocessed Files
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-build-debug-info-preprocessed-${{ inputs.target }}
|
name: geode-build-debug-info-preprocessed-${{ inputs.target }}
|
||||||
path: ./build-debug-info-preprocessed/*
|
path: ./build-debug-info-preprocessed/*
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
|
|
Loading…
Reference in a new issue