Skip to content

Merge pull request #22 from illusion0001/patch-2 #130

Merge pull request #22 from illusion0001/patch-2

Merge pull request #22 from illusion0001/patch-2 #130

Workflow file for this run

name: Build and publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_extensions:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: ['10.4']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Get short SHA
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV
- name: Setup Ghidra
uses: er28-0652/setup-ghidra@master
with:
version: ${{ matrix.ghidra }}
- name: Build GhidraOrbis
uses: eskatos/gradle-command-action@v2
with:
gradle-version: 8.3
arguments: buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- name: Upload GhidraOrbis Artifact
uses: actions/upload-artifact@v3
with:
path: dist/*.zip
if-no-files-found: error
push_release:
if: |
github.event_name == 'push' &&
github.repository == 'astrelsky/GhidraOrbis'
needs: build_extensions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create 1.0${{ GITHUB.RUN_NUMBER }} artifact/*.zip --target ${{ GITHUB.SHA }} -t 1.0${{ GITHUB.RUN_NUMBER }}