diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2022-12-13 05:19:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 05:19:31 +0100 |
commit | 630b34f7a783837643034288ea1f983e4259c708 (patch) | |
tree | b5815a0aa281b1d5807aa214ef853f771e65007e /.github | |
parent | d620071683629cb8900f4b43659b1ad392e38664 (diff) | |
download | dokka-630b34f7a783837643034288ea1f983e4259c708.tar.gz dokka-630b34f7a783837643034288ea1f983e4259c708.tar.bz2 dokka-630b34f7a783837643034288ea1f983e4259c708.zip |
Enable caching Maven dependencies for `setup-java` GitHub Action (#2722)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/check.yml | 1 | ||||
-rw-r--r-- | .github/workflows/dokka-examples.yml | 7 | ||||
-rw-r--r-- | .github/workflows/gh-actions-artifacts-snapshots.yml | 3 | ||||
-rw-r--r-- | .github/workflows/gh-pages-examples.yml | 4 | ||||
-rw-r--r-- | .github/workflows/gh-pages.yml | 1 | ||||
-rw-r--r-- | .github/workflows/gradle-test.pr.yml | 2 | ||||
-rw-r--r-- | .github/workflows/s3-snapshots.yml | 4 |
7 files changed, 20 insertions, 2 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 04b3cb72..c6f169dc 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -17,6 +17,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 with: arguments: apiCheck --stacktrace diff --git a/.github/workflows/dokka-examples.yml b/.github/workflows/dokka-examples.yml index f6b673b5..1e99f499 100644 --- a/.github/workflows/dokka-examples.yml +++ b/.github/workflows/dokka-examples.yml @@ -27,6 +27,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - run: ./gradlew build --no-daemon --stacktrace working-directory: ${{ matrix.projects }} @@ -55,6 +56,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - run: ./gradlew dokkaHtml --no-daemon --stacktrace working-directory: ${{ matrix.projects }} @@ -77,6 +79,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - run: ./gradlew ${{ matrix.tasks }} --no-daemon --stacktrace working-directory: examples/gradle/dokka-library-publishing-example @@ -103,6 +106,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - run: ./gradlew ${{ matrix.task }} --no-daemon --stacktrace working-directory: ${{ matrix.dir }} @@ -123,6 +127,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - run: mvn compile dokka:dokka working-directory: examples/maven - if: steps.filter.outputs.examples_changed == 'true'
\ No newline at end of file + if: steps.filter.outputs.examples_changed == 'true' diff --git a/.github/workflows/gh-actions-artifacts-snapshots.yml b/.github/workflows/gh-actions-artifacts-snapshots.yml index 3bac4340..e073dae3 100644 --- a/.github/workflows/gh-actions-artifacts-snapshots.yml +++ b/.github/workflows/gh-actions-artifacts-snapshots.yml @@ -19,6 +19,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document coroutines uses: gradle/gradle-build-action@v2 with: @@ -44,6 +45,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document serialization uses: gradle/gradle-build-action@v2 with: @@ -69,6 +71,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document biojava-core uses: gradle/gradle-build-action@v2 with: diff --git a/.github/workflows/gh-pages-examples.yml b/.github/workflows/gh-pages-examples.yml index 3edf2726..b5f3f13b 100644 --- a/.github/workflows/gh-pages-examples.yml +++ b/.github/workflows/gh-pages-examples.yml @@ -30,6 +30,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - name: Build html run: ./gradlew dokkaHtml --no-daemon --stacktrace @@ -60,6 +61,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - name: Build html run: ./gradlew dokkaHtmlMultiModule --no-daemon --stacktrace @@ -85,4 +87,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} keep_files: true publish_dir: ./public - full_commit_message: Publish examples
\ No newline at end of file + full_commit_message: Publish examples diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e2a66c91..9a744d38 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -26,6 +26,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + cache: 'maven' - uses: gradle/gradle-build-action@v2 - name: Get current dokka version run: echo "DOKKA_VERSION=`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2`" >> $GITHUB_ENV diff --git a/.github/workflows/gradle-test.pr.yml b/.github/workflows/gradle-test.pr.yml index f24bf477..1a40239c 100644 --- a/.github/workflows/gradle-test.pr.yml +++ b/.github/workflows/gradle-test.pr.yml @@ -14,6 +14,7 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.version }} + cache: 'maven' - uses: gradle/gradle-build-action@v2 with: arguments: clean test --stacktrace @@ -30,6 +31,7 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.version }} + cache: 'maven' - uses: gradle/gradle-build-action@v2 with: arguments: clean test --stacktrace --no-daemon --parallel --max-workers=1 diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index fdfb3460..912beaf3 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -19,6 +19,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document stdlib uses: gradle/gradle-build-action@v2 with: @@ -48,6 +49,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document coroutines uses: gradle/gradle-build-action@v2 with: @@ -77,6 +79,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document serialization uses: gradle/gradle-build-action@v2 with: @@ -106,6 +109,7 @@ jobs: with: distribution: 'zulu' java-version: 12 + cache: 'maven' - name: Document biojava-core uses: gradle/gradle-build-action@v2 with: |