This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new aca9fd3ca6 ci: add package cache for build-haskell-doc (#5173)
aca9fd3ca6 is described below
commit aca9fd3ca696895d4b9b8afcd0892bff7d44be40
Author: xmchx <[email protected]>
AuthorDate: Fri Oct 11 17:01:16 2024 +0800
ci: add package cache for build-haskell-doc (#5173)
* ci: add package cache for build-haskell-doc
* ci: revert setup haskell toolchain
* ci: add parallel for cabal
---
.github/workflows/docs.yml | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index d02e63dfa2..4f46987a8e 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -219,13 +219,25 @@ jobs:
ghcup install cabal --set
cabal update
+ - name: Setup cache
+ uses: actions/cache@v3
+ env:
+ cache-name: cache-cabal
+ with:
+ path: ~/.cabal
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{
hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
+
- name: Setup Rust toolchain
uses: ./.github/actions/setup
- name: Build Docs
working-directory: "bindings/haskell"
run: |
- cabal haddock --haddock-html --haddock-quickjump
--haddock-hyperlink-source
+ cabal haddock --haddock-html --haddock-quickjump
--haddock-hyperlink-source -j
find dist-newstyle -path '**/build/**/doc' -exec cp -r
{}/html/opendal/ doc \;
- name: Upload docs