Update GCP drivers to ensure Metalus works properly with GCP Storage #78
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
name: PR Build | |
on: | |
pull_request_target: | |
branches: [ develop, master ] | |
jobs: | |
build: | |
name: Compile and Test | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
spark: [ '3.0_2.12', '3.1_2.12', '3.2_2.12', '3.3_2.12' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Source Checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Maven Jars | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-maven-jars | |
with: | |
path: ~/.m2 | |
key: metalus-build-${{ env.cache-name }} | |
- id: get-versions | |
run: | | |
spark=$(echo ${{matrix.spark}} | cut -d_ -f1) | |
scala=$(echo ${{matrix.spark}} | cut -d_ -f2) | |
echo "::set-output name=spark::$spark" | |
echo "::set-output name=scala::$scala" | |
- name: Build with Maven | |
env: | |
SPARK_LOCAL_IP: 127.0.0.1 | |
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | |
run: mvn -B -P spark_${{ steps.get-versions.outputs.spark }},scala_${{ steps.get-versions.outputs.scala }} clean install |