Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ubfx/BinDiffHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ubfx committed Sep 11, 2024
2 parents 6f9e28f + 5859f27 commit c20f86a
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
ghidra:
- "11.1.2"
- "11.1.1"
- "11.1"
- "11.0.3"
- "11.0.2"
- "11.0.1"
- "11.0"

steps:
- name: Clone Repository
uses: actions/checkout@v4

- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Install Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: "7.5"

- name: Install Ghidra ${{ matrix.ghidra }}
uses: antoniovazquezblanco/[email protected]
with:
auth_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ matrix.ghidra }}

- name: Build
run: gradle

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: BinDiffHelper_Ghidra_${{ matrix.ghidra }}
path: dist/*.zip

release:
runs-on: "ubuntu-latest"
needs: build
if: contains(github.ref, 'refs/tags/v')

steps:
- name: Download binaries
uses: actions/download-artifact@v4

- name: Release stable
if: contains(github.ref, 'refs/tags/v')
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "BinDiffHelper ${{github.ref_name}}"
files: BinDiffHelper_Ghidra_*/*.zip

0 comments on commit c20f86a

Please sign in to comment.