name: ci-build on: push: branches-ignore: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 - name: Set up JDK 16 uses: actions/setup-java@v2 with: distribution: 'zulu' java-version: 16 - name: Build with Gradle uses: burrunan/gradle-cache-action@v1 with: job-id: jdk16 arguments: build