From d45f4457387ee8098e582347d0be0f3e3f601646 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Wed, 17 Apr 2024 01:23:41 -0700 Subject: [PATCH] GitHub workflows: Add Gradle build for Ghidra extension This action generates a "BinExport_Ghidra-Java" build artifact on every push. This fixes #127. Releases are still done from internal builds. PiperOrigin-RevId: 625597552 Change-Id: I129d06cf4fe8818947f553938e85c31a105c597a --- .github/workflows/gradle.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 00000000..badd3d08 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,41 @@ +name: gradle-build + +on: [push, pull_request] + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - ghidra: 11.0.3 + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: "17" + - name: Setup Ghidra + uses: er28-0652/setup-ghidra@b53614dada0a16e3c342277caae905b96d803109 + with: + version: ${{ matrix.ghidra }} + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-version: 8.7 + + - name: Build + working-directory: ${{ github.workspace }}/java + run: | + gradle buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3.1.2 + with: + name: BinExport_Ghidra-Java + path: | + ${{ github.workspace }}/java/dist/*