Repository navigation
182 lines (149 loc) · 5.12 KB
/
Copy pathrelease.yml
File metadata and controls
182 lines (149 loc) · 5.12 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
name: Release
on:
push:
tags:
- "v*.*.*"
branches: [ "release-test/v*.*.*" ]
# additional permissions for provided GitHub token to create new release
permissions:
contents: write
jobs:
build-release-win-bundle:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
- name: Set up JDK
uses: oracle-actions/setup-java@v1
with:
release: 25
- name: Set jadx version
uses: actions/github-script@v9
with:
script: |
const jadxVersion = context.ref.split('/').pop().substring(1)
core.exportVariable('JADX_VERSION', jadxVersion);
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build No-JRE bundle
run: ./gradlew dist -PjadxBundleType=win-no-jre
- name: Save bundle artifact
uses: actions/upload-artifact@v7
with:
name: ${{ format('jadx-gui-{0}-win.zip', env.JADX_VERSION) }}
path: ${{ format('build/distWin/jadx-gui-{0}-win.zip', env.JADX_VERSION) }}
if-no-files-found: error
retention-days: 1
- name: Build JRE bundle
run: ./gradlew dist -PbundleJRE=true -PjadxBundleType=win-jre
- name: Save JRE bundle artifact
uses: actions/upload-artifact@v7
with:
name: ${{ format('jadx-gui-{0}-with-jre-win.zip', env.JADX_VERSION) }}
path: ${{ format('build/distWinWithJre/jadx-gui-{0}-with-jre-win.zip', env.JADX_VERSION) }}
if-no-files-found: error
retention-days: 1
# Prepare build for 'msi' bundle
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: '8.0.x'
- name: Install WiX Toolset
run: |
dotnet tool install wix --global --version 5.0.2
wix extension add --global WixToolset.Util.wixext/5.0.2
wix extension add --global WixToolset.UI.wixext/5.0.2
wix.exe --version
- name: Build msi bundle
run: ./gradlew :jadx-gui:jpackage -PjadxBundleType=msi
- name: Save msi artifact
uses: actions/upload-artifact@v7
with:
name: ${{ format('jadx-gui-{0}.msi', env.JADX_VERSION) }}
path: jadx-gui/build/jpackage/jadx-gui-*.msi
if-no-files-found: error
retention-days: 1
build-release-mac-bundle:
strategy:
matrix:
os: [ macos-latest, macos-15-intel ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Set up JDK
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Set jadx version
uses: actions/github-script@v9
with:
script: |
const jadxVersion = context.ref.split('/').pop().substring(1)
core.exportVariable('JADX_VERSION', jadxVersion);
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build
run: ./gradlew distMac -PjadxBundleType=dmg
- name: Save macOS DMG artifact
uses: actions/upload-artifact@v7
with:
name: ${{ format('jadx-gui-{0}-mac-{1}', env.JADX_VERSION, runner.arch) }}
path: build/distMac/*.dmg
if-no-files-found: error
retention-days: 1
release:
needs: [ build-release-win-bundle, build-release-mac-bundle ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up JDK
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Set jadx version and release name
uses: actions/github-script@v9
with:
script: |
const jadxVersion = context.ref.split('/').pop().substring(1)
core.exportVariable('JADX_VERSION', jadxVersion);
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build
run: ./gradlew dist -PjadxBundleType=app
env:
JADX_BUILD_JAVA_VERSION: 11
- name: Download Windows NO-JRE bundle
uses: actions/download-artifact@v8
with:
name: ${{ format('jadx-gui-{0}-win.zip', env.JADX_VERSION) }}
path: build
- name: Download Windows JRE bundle
uses: actions/download-artifact@v8
with:
name: ${{ format('jadx-gui-{0}-with-jre-win.zip', env.JADX_VERSION) }}
path: build
- name: Download Windows MSI bundle
uses: actions/download-artifact@v8
with:
name: ${{ format('jadx-gui-{0}.msi', env.JADX_VERSION) }}
path: build
- name: Download macOS DMG bundles
uses: actions/download-artifact@v8
with:
pattern: ${{ format('jadx-gui-{0}-mac-*', env.JADX_VERSION) }}
merge-multiple: true
path: build
- run: |
cd build
ls -l
- name: Release
uses: softprops/action-gh-release@v3
with:
name: ${{ env.JADX_VERSION }}
draft: true
fail_on_unmatched_files: true
files: |
build/jadx-*.zip
build/jadx-gui-*.msi
build/jadx-gui-*-mac-*.dmg