Skip to content

Commit

Permalink
Improve github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCanali committed Sep 26, 2023
1 parent 32ce826 commit 47093ac
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,26 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11, 17 ]

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3

- name: Set up Java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java-version }}

- name: Build using sbt for all Scala versions supported
run: sbt +package
- uses: actions/upload-artifact@v3
with:
java-version: 1.8
- name: Package
run: sbt package
- uses: actions/upload-artifact@v2
name: SparkPlugins package scala 2.13
path: target/scala-2.13/*.jar
- uses: actions/upload-artifact@v3
with:
name: SparkPlugins package scala 2.12
path: /home/runner/work/SparkPlugins/SparkPlugins/target/scala-2.12/*.jar

path: target/scala-2.12/*.jar

0 comments on commit 47093ac

Please sign in to comment.