2024-06-24 15:14:26 -04:00
|
|
|
name: Prepare for Build Debug Info
|
|
|
|
description: Provides debug info for the build process
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
has-sccache:
|
|
|
|
description: 'Whether the build action has sccache'
|
|
|
|
required: true
|
|
|
|
outputs:
|
|
|
|
extra-configure:
|
|
|
|
description: 'Extra stuff for CMake configure step'
|
|
|
|
value: |
|
|
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
|
|
cp ./build/compile_commands.json ./build-debug-info/
|
|
|
|
extra-build:
|
|
|
|
description: 'Extra stuff for CMake build step'
|
|
|
|
value: |
|
|
|
|
python3 ./ninjatracing/ninjatracing ./build/.ninja_log > ./build-debug-info/ninja-trace.json
|
2024-06-28 15:06:51 -04:00
|
|
|
${{ inputs.has-sccache && 'sccache --show-adv-stats' || '' }}
|
2024-06-24 15:14:26 -04:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Prepare
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir ./build-debug-info
|
|
|
|
echo "SCCACHE_ERROR_LOG=$GITHUB_WORKSPACE/build-debug-info/sccache-log.txt" >> $GITHUB_ENV
|
|
|
|
echo "SCCACHE_LOG=debug" >> $GITHUB_ENV
|
|
|
|
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Checkout ninjatracing
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: 'nico/ninjatracing'
|
|
|
|
path: ninjatracing
|
|
|
|
submodules: recursive
|