File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,11 @@ jobs:
5555 - name : Add LMDB to Nix environment
5656 run : |
5757 nix-env -f '<nixpkgs>' -iA lmdb
58- LMDB_OUT=$(nix-env -q --out-path lmdb)
59- echo "nix-env output: $LMDB_OUT"
60- LMDB_DEV=$(echo "$LMDB_OUT" | sed -n 's/.*dev=\([^ ]*\).*/\1/p')
61- echo "LMDB dev path: $LMDB_DEV"
62- if [ -n "$LMDB_DEV" ] && [ -d "$LMDB_DEV/lib/pkgconfig" ]; then
63- echo "PKG_CONFIG_PATH=${LMDB_DEV}/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
64- echo "Added LMDB dev to PKG_CONFIG_PATH"
58+ LMDB_STORE=$(find /nix/store -maxdepth 1 -name '*lmdb*-dev' -type d | head -1)
59+ echo "LMDB dev store path: $LMDB_STORE"
60+ if [ -n "$LMDB_STORE" ]; then
61+ ls -la "$LMDB_STORE/lib/pkgconfig/" || echo "No pkgconfig dir"
62+ echo "PKG_CONFIG_PATH=${LMDB_STORE}/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
6563 fi
6664 shell : devx {0}
6765 - name : Verify LMDB availability
You can’t perform that action at this time.
0 commit comments