Skip to content

Release: 20240709

Release: 20240709 #101

Workflow file for this run

name: ci
on: [push, pull_request, workflow_dispatch]
env:
GHIDRA_INSTALL_DIR: /home/runner/ghidra
jobs:
build_and_test:
name: Build + test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ghidra_version: "11.1"
ghidra_build_date: "20240607"
ghidra_sha256: "293f60e04fa480315d2c467f4b2b4b10b3b6b5c8a8416bf7167fe082406e3be8"
- ghidra_version: "11.1.1"
ghidra_build_date: "20240614"
ghidra_sha256: "7fe8d9a6e7e5267f3cf487a0c046b21fb08d7a602facaa2e81ac2f09b5df2866"
env:
GHIDRA_VERSION: ${{ matrix.ghidra_version }}
GHIDRA_BUILD_DATE: ${{ matrix.ghidra_build_date }}
GHIDRA_SHA256: ${{ matrix.ghidra_sha256 }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Install Ghidra
run: .github/scripts/install_ghidra.sh
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: GhidraBoy_Ghidra_${{ matrix.ghidra_version }}
path: build/distributions/*_GhidraBoy.zip
if-no-files-found: 'error'
release:
if: github.ref_type == 'tag'
name: Create draft release
runs-on: ubuntu-latest
needs: build_and_test
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Create release and upload distribution
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create --verify-tag --generate-notes --draft "${{ github.ref_name }}"
gh release upload "${{ github.ref_name }}" GhidraBoy_Ghidra_*/*.zip