This is an automated email from the ASF dual-hosted git repository. silver pushed a commit to branch haskell-package in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit e74ce1f64f141e799ebf5df6ec034b31d1ae3732 Author: silver-ymz <[email protected]> AuthorDate: Mon Sep 18 17:29:23 2023 +0800 ci(bindings/haskell): manually verify packaged dist Signed-off-by: silver-ymz <[email protected]> --- .github/workflows/bindings_haskell.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bindings_haskell.yml b/.github/workflows/bindings_haskell.yml index 4793bcd3e..7299b5863 100644 --- a/.github/workflows/bindings_haskell.yml +++ b/.github/workflows/bindings_haskell.yml @@ -95,10 +95,17 @@ jobs: - name: Package working-directory: "bindings/haskell" run: | - cargo package --target-dir target + cargo package --no-verify --target-dir target cd target/package tar xf opendal-hs-*.crate --strip-components=1 cabal sdist + - name: Verify package + run: | + # replace the next line of "[dependencies.opendal]" from version to path + sed -i '/^\[dependencies\.opendal\]/{n;s~.*~path = "'$(pwd)/core'"~}' bindings/haskell/target/package/Cargo.toml + echo "[workspace]" >> bindings/haskell/target/package/Cargo.toml + cd bindings/haskell/target/package + LD_LIBRARY_PATH=../../../../target/debug cabal test - name: Upload artifact uses: actions/upload-artifact@v3 with:
