Skip to content

java/iot3: fix GitHub workflows #6

java/iot3: fix GitHub workflows

java/iot3: fix GitHub workflows #6

name: Java iot3-examples
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- name: Java iot3-examples
working-directory: java
run: ./gradlew :iot3:examples:build