From 29418c8ba770877d394d37542ded60b007a3ab65 Mon Sep 17 00:00:00 2001 From: Qingzhuo Zhen Date: Fri, 23 Feb 2024 12:49:13 -0800 Subject: [PATCH] update workflow with cache --- .github/workflows/docs.yml | 7 ++++--- .github/workflows/release.yml | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 61576b85..5b122fb7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,14 +6,15 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK 11 uses: actions/setup-java@v4 with: java-version: '11' distribution: 'zulu' - - - name: Checkout - uses: actions/checkout@v4 + cache: 'gradle' - name: Setup Docs run: ./gradlew dokkaHtmlMultiModule diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46a2d58e..5f9c159b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: with: java-version: '11' distribution: 'zulu' + cache: 'gradle' - name: Build run: ./gradlew build