Skip to content

Add new ghidra versions #72

Add new ghidra versions

Add new ghidra versions #72

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build_extension:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: ['11.0', '11.0.1', '11.0.2', '11.0.3', '11.1', '11.1.1', '11.1.2']
java: ['17']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Setup Ghidra
uses: er28-0652/setup-ghidra@master
with:
version: ${{ matrix.ghidra }}
- name: bodge
run: chmod +x gradlew
- name: Build Extension
run: ./gradlew
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Ps3GhidraScripts_${{ matrix.ghidra }}
path: dist
retention-days: 7
if-no-files-found: error
push_release:
if: |
github.event_name == 'push' &&
github.repository == 'clienthax/Ps3GhidraScripts'
needs: build_extension
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create 1.0${{ GITHUB.RUN_NUMBER }} artifacts/*.zip --target ${{ GITHUB.SHA }} -t 1.0${{ GITHUB.RUN_NUMBER }}