-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.15 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
name: Build and Deploy
on:
push:
branches: [main]
env:
GRADLE_USER_HOME: ${{ github.workspace }}/.gradle
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK 1.8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: Cache Gradle
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Build
run: |
./gradlew build --no-daemon --refresh-dependencies
./gradlew -DsparkVersion=3.2 build --no-daemon --refresh-dependencies
./gradlew -DsparkVersion=3.1 build --no-daemon --refresh-dependencies
# - name: Deploy Snapshot
# if: github.ref == 'refs/heads/main'
# run: |
# ./gradlew publish --no-daemon --refresh-dependencies
# ./gradlew -DsparkVersion=3.2 publish --no-daemon --refresh-dependencies
# ./gradlew -DsparkVersion=3.1 publish --no-daemon --refresh-dependencies