From 3db50fbcf43f4549fc8a208e633acb5ccb17a018 Mon Sep 17 00:00:00 2001 From: Marcin Szczepanski Date: Tue, 30 Apr 2024 17:02:07 +1000 Subject: [PATCH] Combine debug symbols into single artifact --- .github/workflows/release.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dcbd3cce3e..ad6d0b6d7bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -272,11 +272,23 @@ jobs: uses: actions/download-artifact@v3 with: path: artifacts - - name: Move artifacts - run: for d in artifacts/*/*/*; do cp $d/*.node packages/$(basename $(dirname $d))/$(basename $d); done + - name: Move bindings + run: for d in artifacts/bindings-*/*/*; do cp $d/*.node packages/$(basename $(dirname $d))/$(basename $d); done + - name: Move debug symbols + run: | + mkdir debug-symbols + find artifacts -name "*.debug" -exec cp {} debug-symbols/ \; + find artifacts -name "*.node" -path "**/DWARF" -exec cp {} debug-symbols/ \; + - name: Upload combined debug symbols artifact + uses: actions/upload-artifact@v3 + if: ${{ inputs.profile == 'canary' }} + with: + name: debug-symbols + path: debug-symbols/** - name: Debug run: ls -l packages/*/*/*.node + run: ls -l debug-symbols - run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: ${{ inputs.release-command }} + #- run: ${{ inputs.release-command }}