From 179c3033ba8f3b42815fd283295d5972b459fbac Mon Sep 17 00:00:00 2001 From: larzie Date: Fri, 8 Nov 2024 14:19:10 +0300 Subject: [PATCH] Update build debug info action --- .github/actions/build-debug-info/action.yml | 30 +++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/actions/build-debug-info/action.yml b/.github/actions/build-debug-info/action.yml index 4f2e65d9..f92b4c64 100644 --- a/.github/actions/build-debug-info/action.yml +++ b/.github/actions/build-debug-info/action.yml @@ -1,16 +1,18 @@ -name: Prepare for Build Debug Info +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: | @@ -20,17 +22,17 @@ outputs: 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: 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 + - name: Checkout ninjatracing repository + uses: actions/checkout@v4 + with: + repository: 'nico/ninjatracing' + path: ninjatracing + submodules: recursive