Skip to content

Commit

Permalink
ci: add haddock generator for haskell binding (#2569)
Browse files Browse the repository at this point in the history
* ci: add haddock generator for haskell binding

Signed-off-by: silver-ymz <[email protected]>

* typo

Signed-off-by: silver-ymz <[email protected]>

* build rust crate first

Signed-off-by: silver-ymz <[email protected]>

---------

Signed-off-by: silver-ymz <[email protected]>
  • Loading branch information
silver-ymz authored Jun 29, 2023
1 parent a86fdce commit 01feba4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ jobs:
with:
name: C-docs
path: ./bindings/c/docs/doxygen/html

build-lua-doc:
runs-on: ubuntu-latest

Expand All @@ -182,6 +183,33 @@ jobs:
name: lua-docs
path: ./bindings/lua/doc/

build-haskell-doc:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Haskell toolchain
run: |
sudo apt-get update
sudo apt-get install -y ghc cabal-install
cabal update
- name: Setup Rust toolchain
uses: ./.github/actions/setup

- 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: Upload docs
uses: actions/upload-artifact@v3
with:
name: haskell-docs
path: ./bindings/haskell/doc/

build-website:
runs-on: ubuntu-latest
Expand All @@ -191,6 +219,8 @@ jobs:
- build-nodejs-doc
- build-python-doc
- build-c-doc
- build-lua-doc
- build-haskell-doc

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -241,6 +271,12 @@ jobs:
name: lua-docs
path: ./website/static/docs/lua

- name: Download haskell docs
uses: actions/download-artifact@v3
with:
name: haskell-docs
path: ./website/static/docs/haskell

- name: Install Dependencies
working-directory: website
run: yarn install --immutable
Expand Down

0 comments on commit 01feba4

Please sign in to comment.