Misc improvements and update to Ghidra 11.1.2 #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Root directory for doing Ghidra work (building, etc.) | |
root: ["/tmp/ghidra"] | |
# Ghidra build version(s) | |
version: [11.1.2] | |
include: | |
- version: 11.1.2 | |
release_url: "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.1.2_build" | |
filename: "ghidra_11.1.2_PUBLIC_20240709.zip" | |
directory: "ghidra_11.1.2_PUBLIC" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download Ghidra | |
run: | | |
wget -P ${{matrix.root}} -q ${{matrix.release_url}}/${{matrix.filename}} | |
unzip -d ${{matrix.root}} -q ${{matrix.root}}/${{matrix.filename}} | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Build plugin via gradle | |
run: gradle -PGHIDRA_INSTALL_DIR=${{matrix.root}}/${{matrix.directory}} -PZIP_NAME_PREFIX=ghidra_${{matrix.version}} | |
# Uploading a ZIP file as an artifact creates a double-ZIP | |
- name: Fix artifact ZIP | |
run: unzip -d dist/${{matrix.version}} dist/*_${{matrix.version}}_*.zip | |
# Upload the unzipped contents as the artifact to create a Ghidra-loadable ZIP file | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ghidra_${{matrix.version}}_REAIT | |
path: dist/${{matrix.version}}/* | |
if-no-files-found: error |