forked from apache/calcite-avatica
-
Notifications
You must be signed in to change notification settings - Fork 1
205 lines (193 loc) · 5.95 KB
/
main.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
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
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
jobs:
windows:
name: 'Windows (JDK 11)'
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- name: 'Test'
shell: cmd
run: |
./gradlew --no-parallel --no-daemon build javadoc
linux-jdk8:
name: 'Linux (JDK 8)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 8'
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon tasks build javadoc
linux-jdk8-avatica:
name: 'Linux (JDK 8), Avatica main'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 8'
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Install Avatica to Maven Local'
run: |
./gradlew publishToMavenLocal -Pcalcite.avatica.version=1.0.0-dev-main -PskipJavadoc
- name: 'Test Calcite'
run: |
git clone -b looker --single-branch --depth 100 https://github.com/looker-open-source/calcite.git ../calcite
cd ../calcite
./gradlew --no-parallel --no-daemon build -Pcalcite.avatica.version=1.0.0-dev-main-SNAPSHOT -PenableMavenLocal
linux-jdk11-oldest-guava-tz:
name: 'Linux (JDK 11), Oldest Guava, Pacific/Chatham Timezone'
runs-on: ubuntu-latest
env:
GUAVA: 14.0.1 # oldest supported Guava version
TZ: Pacific/Chatham # flips between +12:45 and +13:45
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build
linux-jdk11-minimum-guava-tz:
name: 'Linux (JDK 11), Calcite Minimum Guava, America/New_York Timezone'
runs-on: ubuntu-latest
env:
GUAVA: '19.0' # Calcite's minimum Guava version
TZ: America/New_York # flips between −05:00 and −04:00
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} tasks build
linux-jdk11-middle-aged-guava:
name: 'Linux (JDK 11), Middle-Aged Guava'
runs-on: ubuntu-latest
env:
GUAVA: '23.0' # a middle-aged Guava version
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
# Disable getLicenses for Guava 22..29 because of [CALCITE-4815]
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build -x :standalone-server:licenseCopySpec -x :standalone-server:getLicenses -x :standalone-server:license -x :tck:licenseCopySpec -x :tck:getLicenses -x :tck:license
linux-jdk11-newest-guava:
name: 'Linux (JDK 11), Newest Guava'
runs-on: ubuntu-latest
env:
GUAVA: 32.1.1-jre # newest supported Guava version
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build
linux-jdk17:
name: 'Linux (JDK 17)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 17'
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon build javadoc
linux-jdk19:
name: 'Linux (JDK 19)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 19'
uses: actions/setup-java@v2
with:
java-version: 19
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon build
mac:
name: 'macOS (JDK 19)'
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: 'Set up JDK 19'
uses: actions/setup-java@v2
with:
java-version: 19
distribution: 'zulu'
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon tasks build javadoc