-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (48 loc) · 1.46 KB
/
CI.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
name: Publish unstable builds
on:
workflow_dispatch:
push:
jobs:
build_and_publish:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: ["11.0.3"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: "17"
java-package: jdk
architecture: x64
- name: Setup Ghidra
uses: er28-0652/setup-ghidra@b53614dada0a16e3c342277caae905b96d803109
with:
version: ${{ matrix.ghidra }}
- name: Test
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
arguments: test -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- name: Build Extension
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
arguments: buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- name: Upload variants artifact ELF
uses: actions/upload-artifact@v4
with:
name: ghidra_irx
path: |
dist/*.zip
- name: Release
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.zip
tag: "latest"
overwrite: true
file_glob: true