Skip to content

Commit

Permalink
GitHub workflows: Add Gradle build for Ghidra extension
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cblichmann authored and copybara-github committed Apr 17, 2024
1 parent 92a09df commit d45f445
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
name: BinExport_Ghidra-Java
path: |
${{ github.workspace }}/java/dist/*

0 comments on commit d45f445

Please sign in to comment.