-
Notifications
You must be signed in to change notification settings - Fork 23
432 lines (413 loc) · 21.9 KB
/
distribute.yaml
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
name: Build and Publish
on:
push:
branches:
- stable
- master
paths-ignore:
- '**/README.md'
- 'sirius_doc/**/*'
jobs:
# distCLI:
# strategy:
# matrix:
# os: [ ubuntu-latest, windows-latest, macos-latest ]
# runs-on: ${{ matrix.os }}
# env:
# GENERIC_INSTALLER_CERTIFICATE: ${{ secrets.GENERIC_INSTALLER_CERTIFICATE }}
# MACOS_APP_IDENTITY_ID: ${{ secrets.MACOS_APP_IDENTITY_ID }}
# MACOS_IDENTITY_ID: ${{ secrets.MACOS_IDENTITY_ID }}
# MACOS_APPLE_ID: ${{ secrets.MACOS_APPLE_ID }}
# MACOS_APPLE_ID_PW: ${{ secrets.MACOS_APPLE_ID_PW }}
# MACOS_TEAM_ID : ${{ secrets.MACOS_TEAM_ID }}
# SIRIUS_USER: ${{ secrets.SIRIUS_USER }}
# SIRIUS_PW: ${{ secrets.SIRIUS_PW }}
# # LINUX_INSTALLER_CERTIFICATE_FILE: ${{ steps.generic_codesign_cert.outputs.filePath }}
# steps:
# - uses: actions/checkout@v2
# - name: Set up Zulu JDK
# uses: actions/setup-java@v1
# with:
# java-version: '17' # The JDK version to make available on the path.
# java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
# architecture: x64 # (x64 or x86) - defaults to x64
# - name: Load Build properties
# uses: Reedyuk/read-properties@v1.0.1
# id: sirius_version
# with:
# path: './sirius_cli/src/main/resources/sirius_frontend.build.properties'
# property: 'de.unijena.bioinf.siriusFrontend.version'
#
# - if: ${{ (matrix.os == 'macos-latest') && (env.MACOS_APP_IDENTITY_ID != '') }}
# name: Import Apple APP Code-signing ID and p12
# uses: apple-actions/import-codesign-certs@v1
# with:
# keychain-password: ${{ secrets.MACOS_TMP_KEYCHAIN_PWD }}
# p12-file-base64: ${{ secrets.MACOS_APP_CERTIFICATE }}
# p12-password: ${{ secrets.MACOS_APP_CERTIFICATE_PWD }}
#
# - if: ${{ (matrix.os == 'macos-latest') && (env.MACOS_IDENTITY_ID != '') }}
# name: Import Apple Installer Code-signing ID and p12
# uses: apple-actions/import-codesign-certs@v1
# with:
# create-keychain: false
# keychain-password: ${{ secrets.MACOS_TMP_KEYCHAIN_PWD }}
# p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
# p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
#
# - if: matrix.os == 'macos-latest'
# name: Check Identities
# run: /usr/bin/security find-identity
#
# - if: ${{ (matrix.os == 'windows-latest' || matrix.os == 'ubuntu-latest') && (env.GENERIC_INSTALLER_CERTIFICATE != '') }}
# name: Load generic installer codesign cert
# id: generic_codesign_cert
# uses: timheuer/base64-to-file@v1.1
# with:
# fileName: 'generic_installer_cert.p12'
# encodedString: ${{ env.GENERIC_INSTALLER_CERTIFICATE }}
#
# - name: Gradle Build
# uses: eskatos/gradle-command-action@v1
# env:
# WIN_INSTALLER_CERTIFICATE_FILE: ${{ steps.generic_codesign_cert.outputs.filePath }}
# with:
# gradle-version: 7.6
# build-root-directory: sirius_dist/sirius_cli_single_os
# arguments: clean publishSiriusPublicationToMavenLocal -P "build.sirius.native.openjfx.exclude=true" -P "build.sirius.starter.jdk.include=true" -P "de.unijena.bioinf.build.MACOS_TEAM_ID=${{ secrets.MACOS_TEAM_ID }}" -P "de.unijena.bioinf.build.MACOS_APP_IDENTITY_ID=${{ secrets.MACOS_APP_IDENTITY_ID }}" -P "de.unijena.bioinf.build.MACOS_IDENTITY_ID=${{ secrets.MACOS_IDENTITY_ID }}" -P "de.unijena.bioinf.build.MACOS_APPLE_ID=${{ secrets.MACOS_APPLE_ID }}" -P "de.unijena.bioinf.build.MACOS_APPLE_ID_PW=${{ secrets.MACOS_APPLE_ID_PW }}" -P "de.unijena.bioinf.build.WIN_INSTALLER_CERTIFICATE_FILE=${{ steps.generic_codesign_cert.outputs.filePath }}" -P "de.unijena.bioinf.build.WIN_INSTALLER_CERTIFICATE_PW=${{ secrets.GENERIC_INSTALLER_CERTIFICATE_PW }}" -P "de.unijena.bioinf.build.WIN_INSTALLER_CERTIFICATE_TIMESTAMP_URL=${{ secrets.GENERIC_INSTALLER_CERTIFICATE_TIMESTAMP_URL }}"
#
# - name: Sirius Run
# run: |
# TEMP_DIR="$(cd "$(dirname "sirius_cli/src/test/temp_results")"; pwd -P)/$(basename "sirius_cli/src/test/temp_results")"
# mkdir "${TEMP_DIR}" "${TEMP_DIR}/mgf_temp_output" "${TEMP_DIR}/mgf_temp_summary" "${TEMP_DIR}/ms_temp_output" "${TEMP_DIR}/ms_temp_summary" "${TEMP_DIR}/txt_temp_output" "${TEMP_DIR}/txt_temp_summary"
# DEMO_DIR="$(cd "$(dirname "sirius_doc/manual/demo-data")"; pwd -P)/$(basename "sirius_doc/manual/demo-data")"
# MGF_DATA="${DEMO_DIR}/mgf/laudanosine.mgf"
# MS_DATA="${DEMO_DIR}/ms/Bicuculline.ms"
# TXT_DATA_1="${DEMO_DIR}/txt/chelidonine_ms.txt"
# TXT_DATA_2="${DEMO_DIR}/txt/chelidonine_msms1.txt,${DEMO_DIR}/txt/chelidonine_msms2.txt"
# MGF_OUTPUT="${TEMP_DIR}/mgf_temp_output"
# MGF_SUMMARY="${TEMP_DIR}/mgf_temp_summary"
# MS_OUTPUT="${TEMP_DIR}/ms_temp_output"
# MS_SUMMARY="${TEMP_DIR}/ms_temp_summary"
# TXT_OUTPUT="${TEMP_DIR}/txt_temp_output"
# TXT_SUMMARY="${TEMP_DIR}/txt_temp_summary"
# case "$OSTYPE" in
# darwin*) SIRIUS="./sirius_dist/sirius_cli_single_os/build/distributions/sirius.app/Contents/MacOS/sirius" ;;
# linux*) SIRIUS="./sirius_dist/sirius_cli_single_os/build/distributions/sirius/bin/sirius" ;;
# msys*) SIRIUS="./sirius_dist/sirius_cli_single_os/build/distributions/sirius/sirius.exe" ;;
# *) echo "Error: Could not find OS."; exit 1 ;;
# esac
# ${SIRIUS} login --user-env SIRIUS_USER --password-env SIRIUS_PW
# ${SIRIUS} --input ${MGF_DATA} --output ${MGF_OUTPUT} formula -p orbitrap fingerprint structure compound-classes write-summaries --output ${MGF_SUMMARY}
# ${SIRIUS} -1 ${TXT_DATA_1} -2 ${TXT_DATA_2} -z 354.134704589844 -o ${TXT_OUTPUT} formula -p orbitrap write-summaries --output ${TXT_SUMMARY}
# ${SIRIUS} -o ${MS_OUTPUT} -i ${MS_DATA} --ignore-formula formula -p orbitrap -c 5 fingerprint structure compound-classes write-summaries --output ${MS_SUMMARY}
# shell: bash
#
# - name: Sirius MGF Test
# run: |
# RESULTS="sirius_cli/src/test/temp_results/"
# OUTPUT="${RESULTS}mgf_temp_output/1_laudanosine_FEATURE_1/"
# SUMMARY="${RESULTS}mgf_temp_summary/1_laudanosine_FEATURE_1/"
# CANOPUS="${OUTPUT}canopus/"
# CANOPUS_NPC="${OUTPUT}canopus_npc/"
# FINGERPRINTS="${OUTPUT}fingerprints/"
# FINGER_ID="${OUTPUT}fingerid/"
# DIRS=(${SUMMARY} ${OUTPUT} ${CANOPUS} ${CANOPUS_NPC} ${FINGERPRINTS} ${FINGER_ID})
# for DIR in "${DIRS[@]}" ; do
# if [ -d "${DIR}" ]; then
# echo "Found result directory ${DIR}..."
# if [ "$(ls -A ${DIR})" ]; then
# echo "${DIR} is not empty."
# else
# echo "Error: ${DIR} is empty."
# exit 1
# fi
# else
# echo "Error: result directory ${DIR} not found."
# exit 1
# fi
# done
# shell: bash
#
# - name: Sirius MS Test
# run: |
# RESULTS="sirius_cli/src/test/temp_results/"
# OUTPUT="${RESULTS}ms_temp_output/1_Bicuculline_Bicuculline/"
# SUMMARY="${RESULTS}ms_temp_summary/1_Bicuculline_Bicuculline/"
# CANOPUS="${OUTPUT}canopus/"
# CANOPUS_NPC="${OUTPUT}canopus_npc/"
# FINGERPRINTS="${OUTPUT}fingerprints/"
# FINGER_ID="${OUTPUT}fingerid/"
# echo "${FINGER_ID}"
# DIRS=(${SUMMARY} ${OUTPUT} ${CANOPUS} ${CANOPUS_NPC} ${FINGERPRINTS} ${FINGER_ID})
# echo "${DIRS}"
# for DIR in "${DIRS[@]}" ; do
# if [ -d "${DIR}" ]; then
# echo "Found result directory ${DIR}..."
# if [ "$(ls -A ${DIR})" ]; then
# echo "${DIR} is not empty."
# else
# echo "Error: ${DIR} is empty."
# exit 1
# fi
# else
# echo "Error: result directory ${DIR} not found."
# exit 1
# fi
# done
# shell: bash
#
# - name: Sirius TXT Test
# run: |
# RESULTS="sirius_cli/src/test/temp_results/"
# SUMMARY="${RESULTS}txt_temp_summary/1_unknown_/"
# if [ -d "${SUMMARY}" ]; then
# echo "Found result directory ${SUMMARY}..."
# if [ "$(ls -A ${SUMMARY})" ]; then
# echo "${SUMMARY} is not empty."
# else
# echo "Error: ${SUMMARY} is empty."
# exit 1
# fi
# else
# echo "Error: result directory ${SUMMARY} not found."
# exit 1
# fi
# shell: bash
#
# - name: Sirius Run Cleanup
# run: |
# rm -r sirius_cli/src/test/temp_results
#
# - name: Upload Distributions
# uses: actions/upload-artifact@v2
# with:
# retention-days: 1
# name: "sirius-${{ steps.sirius_version.outputs.value }}-${{ runner.os }}-x86-64-headless"
# path: |
# ~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.zip
# ~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.msi
# ~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.pkg
# ~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.deb
# ~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.sha256
distGUI:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
env:
GENERIC_INSTALLER_CERTIFICATE: ${{ secrets.GENERIC_INSTALLER_CERTIFICATE }}
MACOS_APP_IDENTITY_ID: ${{ secrets.MACOS_APP_IDENTITY_ID }}
MACOS_IDENTITY_ID: ${{ secrets.MACOS_IDENTITY_ID }}
MACOS_APPLE_ID: ${{ secrets.MACOS_APPLE_ID }}
MACOS_APPLE_ID_PW: ${{ secrets.MACOS_APPLE_ID_PW }}
MACOS_TEAM_ID : ${{ secrets.MACOS_TEAM_ID }}
SIRIUS_USER: ${{ secrets.SIRIUS_USER }}
SIRIUS_PW: ${{ secrets.SIRIUS_PW }}
steps:
- uses: actions/checkout@v2
- name: Set up Zulu JDK-FX
uses: actions/setup-java@v1
with:
java-version: '17' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: Load Build properties
uses: Reedyuk/read-properties@v1.0.1
id: sirius_version
with:
path: './sirius_cli/src/main/resources/sirius_frontend.build.properties'
property: 'de.unijena.bioinf.siriusFrontend.version'
- if: ${{ (matrix.os == 'macos-latest') && (env.MACOS_APP_IDENTITY_ID != '') }}
name: Import Apple APP Code-signing ID and p12
uses: apple-actions/import-codesign-certs@v1
with:
keychain-password: ${{ secrets.MACOS_TMP_KEYCHAIN_PWD }}
p12-file-base64: ${{ secrets.MACOS_APP_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_APP_CERTIFICATE_PWD }}
- if: ${{ (matrix.os == 'macos-latest') && (env.MACOS_IDENTITY_ID != '') }}
name: Import Apple Installer Code-signing ID and p12
uses: apple-actions/import-codesign-certs@v1
with:
create-keychain: false
keychain-password: ${{ secrets.MACOS_TMP_KEYCHAIN_PWD }}
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- if: matrix.os == 'macos-latest'
name: Check Identities
run: /usr/bin/security find-identity
- if: ${{ (matrix.os == 'windows-latest' || matrix.os == 'ubuntu-latest') && (env.GENERIC_INSTALLER_CERTIFICATE != '') }}
name: Load generic installer codesign cert
id: generic_codesign_cert
uses: timheuer/base64-to-file@v1.1
with:
fileName: 'generic_installer_cert.p12'
encodedString: ${{ env.GENERIC_INSTALLER_CERTIFICATE }}
- name: Gradle Build
uses: eskatos/gradle-command-action@v1
env:
WIN_INSTALLER_CERTIFICATE_FILE: ${{ steps.generic_codesign_cert.outputs.filePath }}
with:
gradle-version: 7.6
build-root-directory: sirius_dist/sirius_gui_dist
arguments: clean publishSiriusPublicationToMavenLocal -P "build.sirius.native.openjfx.exclude=true" -P "build.sirius.starter.jdk.include=true" -P "de.unijena.bioinf.build.MACOS_TEAM_ID=${{ secrets.MACOS_TEAM_ID }}" -P "de.unijena.bioinf.build.MACOS_APP_IDENTITY_ID=${{ secrets.MACOS_APP_IDENTITY_ID }}" -P "de.unijena.bioinf.build.MACOS_IDENTITY_ID=${{ secrets.MACOS_IDENTITY_ID }}" -P "de.unijena.bioinf.build.MACOS_APPLE_ID=${{ secrets.MACOS_APPLE_ID }}" -P "de.unijena.bioinf.build.MACOS_APPLE_ID_PW=${{ secrets.MACOS_APPLE_ID_PW }}" -P "de.unijena.bioinf.build.WIN_INSTALLER_CERTIFICATE_FILE=${{ steps.generic_codesign_cert.outputs.filePath }}" -P "de.unijena.bioinf.build.WIN_INSTALLER_CERTIFICATE_PW=${{ secrets.GENERIC_INSTALLER_CERTIFICATE_PW }}" -P "de.unijena.bioinf.build.WIN_INSTALLER_CERTIFICATE_TIMESTAMP_URL=${{ secrets.GENERIC_INSTALLER_CERTIFICATE_TIMESTAMP_URL }}"
- name: Sirius Run
run: |
TEMP_DIR="$(cd "$(dirname "sirius_cli/src/test/temp_results")"; pwd -P)/$(basename "sirius_cli/src/test/temp_results")"
mkdir "${TEMP_DIR}" "${TEMP_DIR}/mgf_temp_output" "${TEMP_DIR}/mgf_temp_summary" "${TEMP_DIR}/ms_temp_output" "${TEMP_DIR}/ms_temp_summary" "${TEMP_DIR}/txt_temp_output" "${TEMP_DIR}/txt_temp_summary"
DEMO_DIR="$(cd "$(dirname "sirius_doc/manual/demo-data")"; pwd -P)/$(basename "sirius_doc/manual/demo-data")"
MGF_DATA="${DEMO_DIR}/mgf/laudanosine.mgf"
MS_DATA="${DEMO_DIR}/ms/Bicuculline.ms"
TXT_DATA_1="${DEMO_DIR}/txt/chelidonine_ms.txt"
TXT_DATA_2="${DEMO_DIR}/txt/chelidonine_msms1.txt,${DEMO_DIR}/txt/chelidonine_msms2.txt"
MGF_OUTPUT="${TEMP_DIR}/mgf_temp_output"
MGF_SUMMARY="${TEMP_DIR}/mgf_temp_summary"
MS_OUTPUT="${TEMP_DIR}/ms_temp_output"
MS_SUMMARY="${TEMP_DIR}/ms_temp_summary"
TXT_OUTPUT="${TEMP_DIR}/txt_temp_output"
TXT_SUMMARY="${TEMP_DIR}/txt_temp_summary"
case "$OSTYPE" in
darwin*) SIRIUS="./sirius_dist/sirius_gui_dist/build/distributions/sirius.app/Contents/MacOS/sirius" ;;
linux*) SIRIUS="./sirius_dist/sirius_gui_dist/build/distributions/sirius/bin/sirius" ;;
msys*) SIRIUS="./sirius_dist/sirius_gui_dist/build/distributions/sirius/sirius.exe" ;;
*) echo "Error: Could not find OS."; exit 1 ;;
esac
${SIRIUS} login --user-env SIRIUS_USER --password-env SIRIUS_PW
${SIRIUS} --input ${MGF_DATA} --output ${MGF_OUTPUT} formula -p orbitrap fingerprint structure compound-classes write-summaries --output ${MGF_SUMMARY}
${SIRIUS} -1 ${TXT_DATA_1} -2 ${TXT_DATA_2} -z 354.134704589844 -o ${TXT_OUTPUT} formula -p orbitrap write-summaries --output ${TXT_SUMMARY}
${SIRIUS} -o ${MS_OUTPUT} -i ${MS_DATA} --ignore-formula formula -p orbitrap -c 5 fingerprint structure compound-classes write-summaries --output ${MS_SUMMARY}
shell: bash
- name: Sirius MGF Test
run: |
RESULTS="sirius_cli/src/test/temp_results/"
OUTPUT="${RESULTS}mgf_temp_output/1_laudanosine_FEATURE_1/"
SUMMARY="${RESULTS}mgf_temp_summary/1_laudanosine_FEATURE_1/"
CANOPUS="${OUTPUT}canopus/"
CANOPUS_NPC="${OUTPUT}canopus_npc/"
FINGERPRINTS="${OUTPUT}fingerprints/"
FINGER_ID="${OUTPUT}fingerid/"
DIRS=(${SUMMARY} ${OUTPUT} ${CANOPUS} ${CANOPUS_NPC} ${FINGERPRINTS} ${FINGER_ID})
for DIR in "${DIRS[@]}" ; do
if [ -d "${DIR}" ]; then
echo "Found result directory ${DIR}..."
if [ "$(ls -A ${DIR})" ]; then
echo "${DIR} is not empty."
else
echo "Error: ${DIR} is empty."
exit 1
fi
else
echo "Error: result directory ${DIR} not found."
exit 1
fi
done
shell: bash
- name: Sirius MS Test
run: |
RESULTS="sirius_cli/src/test/temp_results/"
OUTPUT="${RESULTS}ms_temp_output/1_Bicuculline_Bicuculline/"
SUMMARY="${RESULTS}ms_temp_summary/1_Bicuculline_Bicuculline/"
CANOPUS="${OUTPUT}canopus/"
CANOPUS_NPC="${OUTPUT}canopus_npc/"
FINGERPRINTS="${OUTPUT}fingerprints/"
FINGER_ID="${OUTPUT}fingerid/"
echo "${FINGER_ID}"
DIRS=(${SUMMARY} ${OUTPUT} ${CANOPUS} ${CANOPUS_NPC} ${FINGERPRINTS} ${FINGER_ID})
echo "${DIRS}"
for DIR in "${DIRS[@]}" ; do
if [ -d "${DIR}" ]; then
echo "Found result directory ${DIR}..."
if [ "$(ls -A ${DIR})" ]; then
echo "${DIR} is not empty."
else
echo "Error: ${DIR} is empty."
exit 1
fi
else
echo "Error: result directory ${DIR} not found."
exit 1
fi
done
shell: bash
- name: Sirius TXT Test
run: |
RESULTS="sirius_cli/src/test/temp_results/"
SUMMARY="${RESULTS}txt_temp_summary/1_unknown_/"
if [ -d "${SUMMARY}" ]; then
echo "Found result directory ${SUMMARY}..."
if [ "$(ls -A ${SUMMARY})" ]; then
echo "${SUMMARY} is not empty."
else
echo "Error: ${SUMMARY} is empty."
exit 1
fi
else
echo "Error: result directory ${SUMMARY} not found."
exit 1
fi
shell: bash
- name: Sirius Run Cleanup
run: |
rm -r sirius_cli/src/test/temp_results
- name: Upload Distributions
uses: actions/upload-artifact@v2
with:
retention-days: 1
name: "sirius-${{ steps.sirius_version.outputs.value }}-${{ runner.os }}-x86-64"
path: |
~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.zip
~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.msi
~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.pkg
~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.deb
~/.m2/repository/de/unijena/bioinf/ms/sirius/${{ steps.sirius_version.outputs.value }}/*.sha256
dockergen:
needs: [ distGUI ]
uses: ./.github/workflows/dockergen.yaml
secrets: inherit
release:
needs: [distGUI]
# needs: [ distCLI, distGUI]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x
- name: Load Build properties
uses: Reedyuk/read-properties@v1.0.1
id: sirius_version
with:
path: './sirius_cli/src/main/resources/sirius_frontend.build.properties'
property: 'de.unijena.bioinf.siriusFrontend.version'
- uses: actions/download-artifact@v2
with:
path: sirius_dist/build/tmp/artifacts/
- name: Display downloaded artifact files
run: ls -lah
working-directory: sirius_dist/build/tmp/artifacts/
- uses: ncipollo/release-action@v1
with:
artifacts: "sirius_dist/build/tmp/artifacts/*/*"
body: |
### Prebuilt SIRIUS releases for all supported platforms.
Installers provided by [Bright Giant](https://github.com/bright-giant/sirius/releases/) are identical to the ones provided by the [Böckerlab](https://github.com/boecker-lab/sirius/releases) but are digitally signed which eases installation on Windows and MacOS.
Package names are made up as follows: `<App Name>-<Version>-<Operating System>-<Flavor>.<PackageType>`. Package types are either generic `.zip` archives or operating system specific installers (e.g. `.pkg` or `.msi`). The flavors describe builds with different features:
* no _Flavor_ suffix represents for the standard SIRIUS package that contains the Graphical User Interface (GUI) and the Command Line Tool (CLI)
* `headless` represents a command line only version that does not contain GUI relevant packages. It is smaller and does not need any GUI libraries installed on the users system (good for servers).
* `service` like standard but additionally contains the experimental _service mode_ of SIRIUS which allows to start SIRIUS as a background service that can be queried form scripting languages or as part of workflows. See the [online documentation](https://boecker-lab.github.io/docs.sirius.github.io/quick-start/#background-service---generic-sirius-api) for details.
Changelog can be found [here](https://boecker-lab.github.io/docs.sirius.github.io/changelog/).
name: "SIRIUS v${{ steps.sirius_version.outputs.value }}"
tag: "v${{ steps.sirius_version.outputs.value }}"
prerelease: ${{ endsWith(steps.sirius_version.outputs.value, '-SNAPSHOT') }}
allowUpdates: ${{ endsWith(steps.sirius_version.outputs.value, '-SNAPSHOT') }}
draft: ${{ env.GITHUB_REF_SLUG == 'stable' && 'false' || 'true' }}
token: ${{ secrets.GITHUB_TOKEN }}
trigger-client-api-build:
needs: [ release ]
runs-on: ubuntu-latest
env:
CLIENT_API_REPO_URL: ${{ secrets.CLIENT_API_REPO_URL }}
CLIENT_API_REPO_TOKEN: ${{ secrets.CLIENT_API_REPO_TOKEN }}
steps:
- if: ${{ (env.CLIENT_API_REPO_URL != '') && (env.CLIENT_API_REPO_TOKEN != '') }}
name: Trigger Actions on sirius-client-openAPI
run: curl -X POST -H "Authorization:Bearer ${{ secrets.CLIENT_API_REPO_TOKEN }}" -H "Accept:application/vnd.github.v3+json" ${{ secrets.CLIENT_API_REPO_URL }} -d '{"ref":"master"}'