2023-07-26 12:13:06 +02:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2023-10-31 20:28:10 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2023-07-26 12:13:06 +02:00
|
|
|
jobs:
|
|
|
|
gradle:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: '17'
|
|
|
|
- name: Install Ghidra
|
|
|
|
run: |
|
|
|
|
curl -L "$GHIDRA_URL" -o ghidra.zip
|
|
|
|
mkdir ~/ghidra
|
|
|
|
unzip ghidra.zip -d ~/ghidra
|
|
|
|
rm ghidra.zip
|
|
|
|
env:
|
2024-06-29 14:04:13 +02:00
|
|
|
GHIDRA_URL: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.1_build/ghidra_11.1_PUBLIC_20240607.zip
|
2023-07-26 12:13:06 +02:00
|
|
|
- name: Execute Gradle build
|
|
|
|
run: ./gradlew
|
|
|
|
env:
|
2024-06-29 14:04:13 +02:00
|
|
|
GHIDRA_INSTALL_DIR: /home/runner/ghidra/ghidra_11.1_PUBLIC/
|
2023-07-26 12:13:06 +02:00
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
./dist/*.zip
|