-
Notifications
You must be signed in to change notification settings - Fork 35
75 lines (65 loc) · 1.81 KB
/
build.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
name: Build and test
on:
push:
branches: '*'
# pull_request:
# branches: '*'
jobs:
build-all-versions:
timeout-minutes: 30
strategy:
matrix:
scala: [ "2.12.17", "2.13.10" ]
spark: [ "3.3.2", "3.3.1", "3.3.0", "3.2.3", "3.2.2", "3.2.1", "3.2.0", "3.1.3", "3.1.2", "3.1.1", "3.1.0", "3.0.3", "3.0.2", "3.0.1", "3.0.0" ]
exclude:
- scala: "2.13.10"
spark: "3.1.3"
- scala: "2.13.10"
spark: "3.1.2"
- scala: "2.13.10"
spark: "3.1.1"
- scala: "2.13.10"
spark: "3.1.0"
- scala: "2.13.10"
spark: "3.0.3"
- scala: "2.13.10"
spark: "3.0.2"
- scala: "2.13.10"
spark: "3.0.1"
- scala: "2.13.10"
spark: "3.0.0"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
check-latest: true
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/jdks
key: ${{ runner.os }}-gradle-spark-${{ matrix.spark }}-${{ matrix.scala }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: |
-Pspark=${{ matrix.spark }}
-Pscala=${{ matrix.scala }}
clean
test
--scan
# qodana:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: 'Qodana Scan'
# uses: JetBrains/[email protected]
# vim: ts=2:sts=2:sw=2:expandtab