-
Notifications
You must be signed in to change notification settings - Fork 704
41 lines (37 loc) · 1.25 KB
/
build-test.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
name: Build Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
spark-profile: [ 'spark-2.3','spark-2.4','spark-3.1' ]
name: Build with spark-version ${{ matrix.spark-profile }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
- name: Cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven
restore-keys: |
${{ runner.os }}-maven
- name: setup-thrift
run: |
sudo apt-get update -qq
sudo apt-get install -qq protobuf-compiler
sudo apt-get install -qq libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
wget -qO- https://archive.apache.org/dist/thrift/0.20.0/thrift-0.20.0.tar.gz | tar zxf -
cd thrift-0.20.0/
chmod +x ./configure
./configure --disable-libs
sudo make -j4 install
- name: install
run: |
mvn clean install -DskipTests -Pbuild-with-format -P${{ matrix.spark-profile }}