Skip to content

Commit

Permalink
Acxiom#345 Working on build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dafreels committed Apr 20, 2023
1 parent ca53501 commit e4a0271
Showing 1 changed file with 66 additions and 66 deletions.
132 changes: 66 additions & 66 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,69 +34,69 @@ jobs:
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
# 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

0 comments on commit e4a0271

Please sign in to comment.