Skip to content

Merge pull request #21 from viniciuslrangel/pr_1 #127

Merge pull request #21 from viniciuslrangel/pr_1

Merge pull request #21 from viniciuslrangel/pr_1 #127

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.3.3']
steps:
- name: Checkout GhidraOrbis
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: Copy artifact
run: cp dist/*.zip dist-bin
- name: Upload GhidraOrbis Artifact
uses: actions/upload-artifact@v3
with:
path: dist-bin
if-no-files-found: error
retention-days: 14
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 }}