160 lines (154 loc) · 6.48 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
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
###############################################################################
# Copyright (c) 2021 ArSysOp and others
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/.
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Alexander Fedorov (ArSysOp) - initial API and implementation
###############################################################################
name: CI
on:
push:
branches:
- master
pull_request:
pull_request_review_comment:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clean up disk space
run: sudo rm -rf "/opt/ghc" && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf $AGENT_TOOLSDIRECTORY
- name: Checkout
uses: actions/checkout@v1
- name: Set up OpenJDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.5
- name: Set up Maven 2
run: echo "MAVEN_OPTS='-Xmx4096m'" > ~/.mavenrc
- name: Build with Maven
run: mvn clean verify --no-transfer-progress -U -DskipTests=false
# - name: Data Test
# run: mvn -B -pl :org.eclipse.birt.data.tests integration-test
# - name: Model Test
# run: mvn -Dtest=AllTests -B -pl :org.eclipse.birt.report.model.tests integration-test
# - name: Model Regression Test
# run: mvn -Dtest=AllTests -B -pl :org.eclipse.birt.report.tests.model integration-test
# - name: Report Engine Test
# run: mvn -Dtest=AllTests -B -pl :org.eclipse.birt.report.engine.tests integration-test
# - name: Charts Core Test
# run: mvn -Dtest=AllTests -B -pl :org.eclipse.birt.chart.tests integration-test
# - name: Charts Regression Test
# run: mvn -Dtest=AllTests -B -pl :org.eclipse.birt.report.tests.chart integration-test
# - name: Engine Regression Test
# run: mvn -Dtest=AllTests -B -pl :org.eclipse.birt.report.tests.engine integration-test
## - name: Test Core
# run: mvn -B -pl :org.eclipse.birt.core.tests integration-test
# - name: Archive BIRT Update Site
# uses: actions/upload-artifact@v3
# with:
# name: birt-site
# path: build/org.eclipse.birt.p2updatesite/target/org.eclipse.birt.p2updatesite*.zip
# - name: Archive BIRT charts
# uses: actions/upload-artifact@v3
# with:
# name: birt-charts
# path: build/birt-packages/birt-charts/target/birt-charts-*.zip
# - name: Archive BIRT RCP Report Win
# uses: actions/upload-artifact@v3
# with:
# name: birt-rcp-report-designer-win
# path: build/birt-packages/birt-report-rcp/target/products/birt-rcp-report-designer-*win*.zip
#
# - name: Archive BIRT RCP Report Linux
# uses: actions/upload-artifact@v3
# with:
# name: birt-rcp-report-designer-linux
# path: build/birt-packages/birt-report-rcp/target/products/birt-rcp-report-designer-*linux*.tar.gz
#
# - name: Archive BIRT RCP Report Mac Arm
# uses: actions/upload-artifact@v3
# with:
# name: birt-rcp-report-designer-mac-arm
# path: build/birt-packages/birt-report-rcp/target/products/birt-rcp-report-designer-*aarch*.tar.gz
#
# - name: Archive BIRT RCP Report Mac Intel
# uses: actions/upload-artifact@v3
# with:
# name: birt-rcp-report-designer-mac
# path: build/birt-packages/birt-report-rcp/target/products/birt-rcp-report-designer-*cocoa.x86*.tar.gz
#
# - name: Archive BIRT Report Designer all-in-one-win
# uses: actions/upload-artifact@v3
# with:
# name: birt-report-designer-all-in-one-win
# path: build/birt-packages/birt-report-all-in-one/target/products/birt-report-designer-all-in-one-*win*.zip
# - name: Archive BIRT Report Designer all-in-one-linux
# uses: actions/upload-artifact@v3
# with:
# name: birt-report-designer-all-in-one-linux
# path: build/birt-packages/birt-report-all-in-one/target/products/birt-report-designer-all-in-one-*linux*.tar.gz
# - name: Archive BIRT Report Designer all-in-one-mac-intel
# uses: actions/upload-artifact@v3
# with:
# name: birt-report-designer-all-in-one-mac-intel
# path: build/birt-packages/birt-report-all-in-one/target/products/birt-report-designer-all-in-one-*macosx.cocoa.x86_*.tar.gz
# - name: Archive BIRT Report Designer all-in-one-mac-silicon
# uses: actions/upload-artifact@v3
# with:
# name: birt-report-designer-all-in-one-mac-silicon
# path: build/birt-packages/birt-report-all-in-one/target/products/birt-report-designer-all-in-one-*macosx.cocoa.aarch64*.tar.gz
# - name: Archive BIRT Report Framework
# uses: actions/upload-artifact@v3
# with:
# name: birt-report-framework
# path: build/birt-packages/birt-report-framework/target/birt-report-framework-*.zip
# - name: Archive BIRT Report Framework SDK
# uses: actions/upload-artifact@v3
# with:
# name: birt-report-framework-sdk
# path: build/birt-packages/birt-report-framework-sdk/target/birt-report-framework-sdk-*.zip
# - name: Archive BIRT Runtime
# uses: actions/upload-artifact@v3
# with:
# name: birt-runtime
# path: build/birt-packages/birt-runtime/target/birt-runtime-*.zip
# - name: Archive BIRT Runtime OSGI
# uses: actions/upload-artifact@v3
# with:
# name: birt-runtime-osgi
# path: build/birt-packages/birt-runtime-osgi/target/birt-runtime-osgi-*.zip
# - name: Archive BIRT Sample Plugins
# uses: actions/upload-artifact@v3
# with:
# name: birt-sample-plugins
# path: build/birt-packages/birt-sample-plugins/target/birt-sample-plugins-*.zip
# - name: Archive BIRT Sources
# uses: actions/upload-artifact@v3
# with:
# name: birt-source
# path: build/birt-packages/birt-source/target/birt-source-*.zip
# - name: Archive BIRT Tests Suite
# uses: actions/upload-artifact@v3
# with:
# name: birt-tests-suite
# path: build/birt-packages/birt-tests-suite/target/birt-tests-suite-*.zip
# - name: Archive BIRT WTP Integration SDK
# uses: actions/upload-artifact@v3
# with:
# name: birt-wtp-integration-sdk
# path: build/birt-packages/birt-wtp-integration-sdk/target/birt-wtp-integration-sdk-*.zip