From 0f05902bb7120fd04b42d35c5de85e30ebe55ed9 Mon Sep 17 00:00:00 2001 From: Andrew Aylett Date: Mon, 4 Apr 2022 13:39:59 +0100 Subject: [PATCH] Build cache and checkout submodules for publish It would be really helpful if I could validate GitHub actions locally :P --- .github/workflows/gradle.yml | 1 + .github/workflows/publish.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e5bf494..f395777 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -31,5 +31,6 @@ jobs: uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee with: arguments: | + --build-cache build -Denterprise.tos.agree=yes diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb89eb4..9d0c953 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,6 +21,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + submodules: true - name: Set up JDK 11 uses: actions/setup-java@v3 with: @@ -33,6 +35,7 @@ jobs: uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee with: arguments: | + --build-cache build -Denterprise.tos.agree=yes @@ -42,6 +45,7 @@ jobs: uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee with: arguments: | + --build-cache publish -Denterprise.tos.agree=yes env: