forked from apache/sedona
-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.56 KB
/
java.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
name: Scala and Java build
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
spark: [2.4.8, 3.0.3, 3.1.2, 3.2.0]
scala: [2.11.8, 2.12.15]
exclude:
- spark: 3.2.0
scala: 2.11.8
- spark: 3.1.2
scala: 2.11.8
- spark: 3.0.3
scala: 2.11.8
include:
- spark: 3.2.0
scala: 2.13.5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '8'
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- run: git submodule update --init --recursive # Checkout Git submodule if necessary
- env:
SPARK_VERSION: ${{ matrix.spark }}
SCALA_VERSION: ${{ matrix.scala }}
run: if [ ${SPARK_VERSION:0:1} == "3" ]; then mvn -q clean install -Dscala=${SCALA_VERSION:0:4} -Dspark=3.0 ; else mvn -q clean install -Dscala=${SCALA_VERSION:0:4} -Dspark=2.4 ; fi
- run: mkdir staging
- run: cp core/target/sedona-*.jar staging
- run: cp sql/target/sedona-*.jar staging
- run: cp viz/target/sedona-*.jar staging
- run: cp python-adapter/target/sedona-*.jar staging
- uses: actions/upload-artifact@v2
with:
name: generated-jars
path: staging