-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE-4351] Add github action for building (#4358)
* add github action for building * Revert "[WIP] Optimize geo module, the feature seems less be used (#4353)" This reverts commit 29607c3. * Revert "[WIP] Optimize geo module, the feature seems less be used" This reverts commit 71abab0. * cache thrift
- Loading branch information
Showing
4 changed files
with
58 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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: | ||
- name: Checkout | ||
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 | ||
/usr/local/bin/thrift | ||
key: ${{ runner.os }}-maven | ||
restore-keys: | | ||
${{ runner.os }}-maven | ||
- name: setup-thrift | ||
run: | | ||
if [ ! -f "/usr/local/bin/thrift" ];then | ||
echo "build thrift binary" | ||
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 | ||
else | ||
echo "use cache thrift binary" | ||
fi | ||
- name: install | ||
run: | | ||
mvn clean install -DskipTests -Pbuild-with-format -P${{ matrix.spark-profile }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters