From 7fec258e1212f2fb764d4922c5a413a0e256200c Mon Sep 17 00:00:00 2001 From: Kyle Lacy Date: Sun, 10 Mar 2024 18:53:08 -0700 Subject: [PATCH] Tweak GitHub Actions workflow so Ghidra recognizes artifact files as plugins --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 350eebb..afae26f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,12 +36,13 @@ jobs: version: ${{ matrix.ghidra }} - name: Build the extension for Ghidra ${{ matrix.ghidra }} - run: gradle -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} -p GhidraNes + run: gradle -PGHIDRA_INSTALL_DIR="${GHIDRA_INSTALL_DIR}" -p GhidraNes - name: Prepare artifact id: prepare run: | - (cd GhidraNes/dist && unzip *.zip) + mkdir -p GhidraNes/dist/artifact + (cd GhidraNes/dist/artifact && unzip ../*.zip) echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" echo "date=$(date -u +'%Y%m%d')" >> "$GITHUB_OUTPUT" @@ -49,4 +50,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: ghidra_${{ matrix.ghidra }}_${{ steps.prepare.outputs.short_sha }}_${{ steps.prepare.outputs.date }}_GhidraNes - path: GhidraNes/dist/GhidraNes + path: GhidraNes/dist/artifact