From 47093ac8d222f23cb1bf6bf1f12e3b91427999a9 Mon Sep 17 00:00:00 2001 From: Luca Canali Date: Tue, 26 Sep 2023 13:56:09 +0200 Subject: [PATCH] Improve github actions --- .github/workflows/build.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 150500e..08a37fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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