Skip to content

Commit

Permalink
Build Java sample with different jdks
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonScholz committed Oct 15, 2023
1 parent 14436bb commit 6176c3d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand All @@ -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

Expand Down

0 comments on commit 6176c3d

Please sign in to comment.