Skip to content

Commit d45f445

Browse files
cblichmanncopybara-github
authored andcommitted
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
1 parent 92a09df commit d45f445

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: gradle-build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- ghidra: 11.0.3
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Java
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: zulu
21+
java-version: "17"
22+
- name: Setup Ghidra
23+
uses: er28-0652/setup-ghidra@b53614dada0a16e3c342277caae905b96d803109
24+
with:
25+
version: ${{ matrix.ghidra }}
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v3
28+
with:
29+
gradle-version: 8.7
30+
31+
- name: Build
32+
working-directory: ${{ github.workspace }}/java
33+
run: |
34+
gradle buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
35+
36+
- name: Upload Build Artifacts
37+
uses: actions/[email protected]
38+
with:
39+
name: BinExport_Ghidra-Java
40+
path: |
41+
${{ github.workspace }}/java/dist/*

0 commit comments

Comments
 (0)