-
Notifications
You must be signed in to change notification settings - Fork 207
52 lines (44 loc) · 1.28 KB
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: gradle-build
on:
push:
pull_request:
workflow_dispatch:
inputs:
ghidra_version:
description: 'Specify the Ghidra version(s) you want to build for (e.g. "latest", "11.0")'
required: true
default: '"latest"'
schedule:
- cron: '0 0 1 * *' # Monthly
jobs:
build:
strategy:
fail-fast: false
matrix:
ghidra: ${{ fromJSON(format('[{0}]', inputs.ghidra_version || '"latest","11.1.2","11.1.1","11.1","11.0.3","11.0.2","11.0.1","11.0"')) }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: "21"
- name: Setup Ghidra
uses: antoniovazquezblanco/setup-ghidra@v2.0.3
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@v4
with:
name: BinExport_Ghidra_${{ matrix.ghidra }}
path: |
${{ github.workspace }}/java/dist/*