Skip to content

Commit 9eefbe0

Browse files
committed
Update github workflow
1 parent 5710096 commit 9eefbe0

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
name: Build
1+
name: Run Gradle on PRs
22
on:
33
pull_request:
44
push:
5-
branches:
6-
- main
5+
workflow_dispatch:
76
jobs:
87
gradle:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-java@v3
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-java@v5
1312
with:
1413
distribution: 'temurin'
15-
java-version: '17'
16-
- name: Install Ghidra
17-
run: |
18-
curl -L "$GHIDRA_URL" -o ghidra.zip
19-
mkdir ~/ghidra
20-
unzip ghidra.zip -d ~/ghidra
21-
rm ghidra.zip
22-
env:
23-
GHIDRA_URL: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.1_build/ghidra_11.1_PUBLIC_20240607.zip
14+
java-version: '21'
15+
- uses: antoniovazquezblanco/[email protected]
16+
with:
17+
version: '12.0'
2418
- name: Execute Gradle build
25-
run: ./gradlew
26-
env:
27-
GHIDRA_INSTALL_DIR: /home/runner/ghidra/ghidra_11.1_PUBLIC/
19+
run: ./gradlew -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
2820
- name: Release
2921
uses: softprops/action-gh-release@v1
3022
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)