-
Notifications
You must be signed in to change notification settings - Fork 12
86 lines (85 loc) · 1.95 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
#
# Copyright 2022- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
name: CI
on:
pull_request:
push:
branches:
- main
tags:
- v*
jobs:
Build:
strategy:
fail-fast: true
matrix:
include:
- spark: 3.2.0
scala: 2.12.15
- spark: 3.2.0
scala: 2.13.5
- spark: 3.2.1
scala: 2.12.15
- spark: 3.2.1
scala: 2.13.5
- spark: 3.2.3
scala: 2.12.15
- spark: 3.2.3
scala: 2.13.5
- spark: 3.2.4
scala: 2.12.15
- spark: 3.2.4
scala: 2.13.5
- spark: 3.3.0
scala: 2.12.15
- spark: 3.3.0
scala: 2.13.8
- spark: 3.3.1
scala: 2.12.15
- spark: 3.3.1
scala: 2.13.8
- spark: 3.3.2
scala: 2.12.15
- spark: 3.3.2
scala: 2.13.8
- spark: 3.4.0
scala: 2.12.17
- spark: 3.4.0
scala: 2.13.8
runs-on: ubuntu-latest
env:
SPARK_VERSION: ${{ matrix.spark }}
SCALA_VERSION: ${{ matrix.scala }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: sbt
- name: Test
shell: bash
if: startsWith(matrix.scala, '2.12.')
run: |
sbt test
- name: Package
shell: bash
run: |
rm -rf target
sbt package
sbt makePom
- name: Upload to maven
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
run: ./.github/publish_maven.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: target/scala*/*.jar