You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by si...@apache.org on 2023/08/06 13:12:52 UTC
[incubator-opendal] branch ci/speed-up-haskell created (now 7da176275)
This is an automated email from the ASF dual-hosted git repository.
silver pushed a change to branch ci/speed-up-haskell
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
at 7da176275 ci: use cache to speed up haskell ci
This branch includes the following new commits:
new 7da176275 ci: use cache to speed up haskell ci
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-opendal] 01/01: ci: use cache to speed up haskell ci
Posted by si...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
silver pushed a commit to branch ci/speed-up-haskell
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 7da1762755fa988f624df608d0dd9c5cdd11c16a
Author: silver-ymz <yi...@gmail.com>
AuthorDate: Sun Aug 6 21:12:40 2023 +0800
ci: use cache to speed up haskell ci
Signed-off-by: silver-ymz <yi...@gmail.com>
---
.github/workflows/bindings_haskell.yml | 11 +++++++++++
.github/workflows/docs.yml | 13 +++++++++++++
2 files changed, 24 insertions(+)
diff --git a/.github/workflows/bindings_haskell.yml b/.github/workflows/bindings_haskell.yml
index 9639ce810..ee6120ab2 100644
--- a/.github/workflows/bindings_haskell.yml
+++ b/.github/workflows/bindings_haskell.yml
@@ -51,8 +51,19 @@ jobs:
cabal update
- name: Setup Rust toolchain
uses: ./.github/actions/setup
+ - name: Restore haskell cache
+ uses: actions/cache/restore@v3
+ with:
+ key: ${{ runner.os }}-haskell-${{ github.sha }}
+ path: ~/.cabal/store
+ restore-keys: ${{ runner.os }}-haskell-
- name: Build & Test
working-directory: "bindings/haskell"
run: |
cargo build
LIBRARY_PATH=../../target/debug LD_LIBRARY_PATH=../../target/debug cabal test
+ - name: Save haskell cache
+ uses: actions/cache/save@v3
+ with:
+ key: ${{ runner.os }}-haskell-${{ github.sha }}
+ path: ~/.cabal/store
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 978b3e61d..9063f7779 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -200,12 +200,25 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup
+ - name: Restore haskell cache
+ uses: actions/cache/restore@v3
+ with:
+ key: ${{ runner.os }}-haskell-${{ github.sha }}
+ path: ~/.cabal/store
+ restore-keys: ${{ runner.os }}-haskell-
+
- name: Build Docs
working-directory: "bindings/haskell"
run: |
cargo build
LIBRARY_PATH=../../target/debug cabal haddock --haddock-html --haddock-quickjump --haddock-hyperlink-source
find dist-newstyle -path '**/build/**/doc' -exec cp -r {}/html/opendal-hs/ doc \;
+
+ - name: Save haskell cache
+ uses: actions/cache/save@v3
+ with:
+ key: ${{ runner.os }}-haskell-${{ github.sha }}
+ path: ~/.cabal/store
- name: Upload docs
uses: actions/upload-artifact@v3