-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (51 loc) · 1.56 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build Ghidra Allegrex
on:
push:
branches:
- '**'
tags:
- 'v*'
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghidra: [ '11.1', '11.1.1', '11.1.2' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Setup Ghidra
uses: antoniovazquezblanco/setup-ghidra@021eb688b995b2c3aa4d607dea9cb332ab4eb9c8
with:
version: ${{ matrix.ghidra }}
- name: Build Extension
run: |
chmod +x gradlew
./gradlew buildExtension
- name: Upload artifact to workflow
uses: actions/upload-artifact@v4
with:
path: dist/*ghidra-allegrex.zip
name: ghidra-allegrex-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-allegrex ${{ github.ref_name }}
file: dist/*ghidra-allegrex.zip
file_glob: true
body: See [CHANGES](https://github.com/kotcrab/ghidra-allegrex/blob/master/CHANGES.md) file before updating.
tag: ${{ github.ref }}