Skip to content

Commit

Permalink
Unified workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kotcrab committed Jun 16, 2024
1 parent 570add8 commit f73b095
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 48 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,53 @@
name: Build ghidra-rest-api

on: [ push, pull_request, workflow_dispatch ]
on:
push:
branches:
- '**'
tags:
- 'v*'
pull_request:
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: [ '11.0.3', '11.1' ]
ghidra: [ '11.0.3', '11.1', '11.1.1' ]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Setup Ghidra
uses: er28-0652/setup-ghidra@0.0.6
uses: antoniovazquezblanco/setup-ghidra@021eb688b995b2c3aa4d607dea9cb332ab4eb9c8
with:
version: ${{ matrix.ghidra }}
- name: Build Extension
run: |
chmod +x gradlew
./gradlew buildExtension
- name: Upload artifact
- name: Upload artifact to action
uses: actions/upload-artifact@v3
with:
path: dist/*ghidra-rest-api.zip
name: ghidra-rest-api-snapshot-for-Ghidra-${{ matrix.ghidra }}
if-no-files-found: error
- name: Upload artifact to release
if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@2.9.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: ghidra-rest-api ${{ github.ref_name }}
file: dist/*ghidra-rest-api.zip
file_glob: true
body: See [CHANGES](https://github.com/kotcrab/ghidra-rest-api/blob/master/CHANGES.md) file before updating.
tag: ${{ github.ref }}
42 changes: 0 additions & 42 deletions .github/workflows/publish.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### Version 2.1.1
- Added build for Ghidra 11.1.1

#### Version 2.1

- Added `function.parameter[].name` field
Expand Down

0 comments on commit f73b095

Please sign in to comment.