Update to Ghidra 11.2 #102
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Test | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.21 | |
- uses: er28-0652/setup-ghidra@master | |
with: | |
version: "11.2" | |
- name: Build Extension | |
working-directory: ./GhidraJupyterKotlin | |
run: gradle buildExtension | |
- name: Upload built extension as artifact for debugging | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ./GhidraJupyterKotlin/dist/*zip | |
retention-days: 1 | |
- name: Install Extension | |
run: unzip ./GhidraJupyterKotlin/dist/*zip -d $GHIDRA_INSTALL_DIR/Ghidra/Extensions | |
- name: Test Kernel Startup # Test if the kernel manages to not crash before the timeout terminates it | |
run: timeout 5s $GHIDRA_INSTALL_DIR/support/launch.sh fg jdk Ghidra '' '' GhidraJupyterKotlin.GhidraKotlinKernelLaunchable .github/workflows/test-kernel-config.json || exit $(($?-124)) | |
- name: Install jupyter-console for testing evaluation | |
run: sudo apt-get install jupyter-console | |
- name: Test basic evaluation | |
run: | | |
echo "1+1" | jupyter-console --existing=.github/workflows/test-kernel-config.json & | |
timeout 10s $GHIDRA_INSTALL_DIR/support/launch.sh fg jdk Ghidra '' '' GhidraJupyterKotlin.GhidraKotlinKernelLaunchable .github/workflows/test-kernel-config.json || exit $(($?-124)) | |
- name: Test support for .kt Scripts | |
run: | | |
$GHIDRA_INSTALL_DIR/support/analyzeHeadless /tmp tmp -readonly -preScript $GITHUB_WORKSPACE/GhidraJupyterKotlin/ghidra_scripts/HelloWorldScriptKt.kt | grep "HelloWorldScriptKt.kt> Hello in Kotlin from null! (GhidraScript)" |