Skip to content

Merge pull request #15 from domenukk/progressbars #59

Merge pull request #15 from domenukk/progressbars

Merge pull request #15 from domenukk/progressbars #59

Workflow file for this run

name: Build and test ShannonLoader
on:
push:
branches: [ master ]
paths:
- 'reversing/ghidra/ShannonLoader/**'
- '!reversing/ghidra/ShannonLoader/*.md'
pull_request:
branches: [ master ]
paths:
- 'reversing/ghidra/ShannonLoader/**'
- '!reversing/ghidra/ShannonLoader/*.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: reversing/ghidra/ShannonLoader
env:
GHIDRA_VERSION: 10.3.3
GHIDRA_BUILDDATE: 20230829
steps:
# Checkout main repo
- uses: actions/checkout@v2
- name: Installing JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Download Ghidra ${{ env.GHIDRA_VERSION }}
run: wget -q "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${GHIDRA_VERSION}_build/ghidra_${GHIDRA_VERSION}_PUBLIC_${GHIDRA_BUILDDATE}.zip"
- name: Unzip Ghidra
run: unzip -q "ghidra_${GHIDRA_VERSION}_PUBLIC_${GHIDRA_BUILDDATE}.zip"
- name: Build and pack extension
run: GHIDRA_INSTALL_DIR="$(pwd)/ghidra_${GHIDRA_VERSION}_PUBLIC" ./gradlew
- name: Install extension to Ghidra
run: unzip "dist/ShannonLoader*.zip" -d "./ghidra_${GHIDRA_VERSION}_PUBLIC/Ghidra/Extensions"
#########################
- uses: actions/checkout@v2
with:
repository: grant-h/ShannonFirmware
path: reversing/ghidra/ShannonLoader/ShannonFirmware
- name: Test loader on firmware corpus
run: GHIDRA_INSTALL_DIR="$(pwd)/ghidra_${GHIDRA_VERSION}_PUBLIC" ./scripts/ShannonFirmwareProcess.py $(pwd) ShannonProject ./ShannonFirmware/modem_files
- name: Upload extension
uses: actions/upload-artifact@v3
with:
name: ShannonLoader
path: reversing/ghidra/ShannonLoader/dist/ShannonLoader*.zip
if-no-files-found: error