-
Notifications
You must be signed in to change notification settings - Fork 79
97 lines (79 loc) · 2.58 KB
/
build.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
name: "Build"
on:
push:
tags: [ '*' ]
branches: [ '*' ]
schedule:
- cron: '10 1 * * *'
workflow_dispatch: { }
jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: milaboratory/github-ci/actions/context/init@v4
with:
version-canonize: false
- id: context
uses: milaboratory/github-ci/actions/context@v4
outputs:
is-release: ${{ steps.context.outputs.is-release }}
run:
needs:
- init
uses: milaboratory/github-ci/.github/workflows/java-gradle.yaml@v4
with:
# Environment
java-version: '11'
product-name: MiXCR
product-name-slug: 'mixcr'
# Tests
test-unit: true
test-unit-before-tasks: shadowJarAfterObfuscation
test-unit-cache: true
test-unit-cache-paths: |
./src/test/resources/sequences/big/**
test-unit-cache-key: 'tests-sequences-v1'
test-integration: true
test-integration-before-tasks: shadowJarAfterObfuscation
test-integration-tasks: ''
test-integration-cache: true
test-integration-cache-paths: |
./src/test/resources/sequences/big/**
test-integration-cache-key: 'tests-sequences-v1'
test-integration-python-version: '3.9'
test-regression: true
test-regression-before-tasks: shadowJarAfterObfuscation
test-regression-tasks: ''
test-regression-cache: true
test-regression-cache-paths: |
./src/test/resources/sequences/big/**
test-regression-cache-key: 'tests-sequences-v1'
# Lib
dist-library: ${{ github.event_name != 'schedule' }}
dist-library-dev-tasks: publishAllPublicationsToMiprivRepository
dist-library-release-tasks: publishAllPublicationsToMiprivRepository
# Distribution
dist-archive: ${{ github.event_name != 'schedule' }}
dist-archive-tasks: distributionZip
dist-archive-paths: ./distributions/mixcr*.zip
dist-archive-s3: true
dist-archive-s3-add-sha: true
# CDN redirect
cdn-redirect-s3: true
cdn-redirect-s3-bucket-path: 'link/software/mixcr'
dist-docker: true
dist-docker-tasks: |
buildDockerImage
buildIMGTDockerImage
dist-docker-image-name: mixcr
# Release configuration
release-github-draft: true
# Send notifications
notify-telegram: true
secrets:
env: |
{ "MI_LICENSE": ${{ toJSON(secrets.MI_LICENSE) }} }
GRADLE_PROPERTIES: |
org.gradle.caching=true
TELEGRAM_NOTIFICATION_TARGET: ${{ secrets.TG_CHANNEL_MIBUILDS }}
TELEGRAM_API_TOKEN: ${{ secrets.TG_CI_BOT_TOKEN }}