forked from Acxiom/metalus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
177 additions
and
12 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,102 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request_target: | ||
branches: [ metalus_2_0_0 ] | ||
|
||
jobs: | ||
core: | ||
name: Core | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
scala: [ '2.12', '2.13' ] | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: ./metalus-core | ||
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 }} | ||
- name: Build and Test | ||
env: | ||
SPARK_LOCAL_IP: 127.0.0.1 | ||
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | ||
run: mvn -B -P scala_${{ matrix.scala }} clean install | ||
aws: | ||
needs: core | ||
name: AWS | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
scala: [ '2.12', '2.13' ] | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: ./metalus-aws | ||
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 }} | ||
- name: Build and Test | ||
env: | ||
SPARK_LOCAL_IP: 127.0.0.1 | ||
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | ||
run: mvn -B -P scala_${{ matrix.scala }} clean install | ||
spark: | ||
needs: core | ||
name: Spark | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
spark: [ '3.1_2.12', '3.2_2.12', '3.3_2.12', '3.1_2.12', '3.2_2.12', '3.3_2.12' ] | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: ./metalus-spark | ||
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 and Test | ||
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 |
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