From 6176c3d3bbced64febdd3de5e30a1116834e238a Mon Sep 17 00:00:00 2001 From: Simon Scholz Date: Sun, 15 Oct 2023 20:59:31 +0200 Subject: [PATCH] Build Java sample with different jdks --- .github/workflows/CI.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index a9653be..06f4c9b 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -6,6 +6,24 @@ jobs: jvm: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: gradle/wrapper-validation-action@v1 + + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 21 + + - uses: gradle/gradle-build-action@v2.9.0 + + - name: Build + run: ./gradlew build + + samples: + runs-on: ubuntu-latest + strategy: matrix: java-version: [ 8, 21 ] @@ -23,13 +41,14 @@ jobs: - uses: gradle/gradle-build-action@v2.9.0 - name: Build - run: ./gradlew build + run: ./gradlew :java-sample:build publish: runs-on: ubuntu-latest if: github.repository == 'SimonScholz/qr-code-with-logo' && github.ref == 'refs/heads/main' needs: - jvm + - samples steps: - uses: actions/checkout@v4