-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (67 loc) · 1.97 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CI
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"
- "10.4"
- "10.3.3"
- "10.3.2"
- "10.3.1"
- "10.3"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/[email protected]
- uses: antoniovazquezblanco/[email protected]
with:
auth_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ matrix.ghidra }}
- name: Build extension
run: ./gradlew -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: Falcon for Ghidra ${{ matrix.ghidra }}
path: dist/ghidra_*.zip
if-no-files-found: error
release:
runs-on: "ubuntu-latest"
needs: build
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Download binaries
uses: actions/download-artifact@v4
- name: Release nightly
if: github.ref == 'refs/heads/master'
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Ghidra Falcon Nightly (${{steps.date.outputs.date}})"
files: Falcon*/*.zip
- name: Release stable
if: contains(github.ref, 'refs/tags/v')
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "Ghidra Falcon ${{github.ref_name}}"
files: Falcon*/*.zip