File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 5252 uses : input-output-hk/actions/base@latest
5353 with :
5454 use-sodium-vrf : true
55+ - name : Add LMDB to Nix environment
56+ run : |
57+ nix-env -f '<nixpkgs>' -iA lmdb
58+ LMDB_STORE=$(find /nix/store -maxdepth 1 -name '*lmdb*-dev' -type d | head -1)
59+ if [ -n "$LMDB_STORE" ]; then
60+ echo "LMDB_PKGCONFIG=${LMDB_STORE}/lib/pkgconfig" >> $GITHUB_ENV
61+ fi
62+ shell : devx {0}
5563 - name : cache cabal
5664 uses : actions/cache@v3
5765 with :
@@ -61,11 +69,17 @@ jobs:
6169 key : ${{ env.CABAL_CACHE_VERSION }}-${{ runner.os }}-${{ matrix.compiler-nix-name }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
6270 restore-keys : ${{ env.CABAL_CACHE_VERSION }}-${{ runner.os }}-${{ matrix.compiler-nix-name }}-
6371 - name : cabal update
64- run : cabal update
72+ run : |
73+ export PKG_CONFIG_PATH_FOR_TARGET=${{ env.LMDB_PKGCONFIG }}:${PKG_CONFIG_PATH_FOR_TARGET:-}
74+ cabal update
6575 - name : cabal build dependencies
66- run : cabal build all -j --enable-tests --only-dependencies
76+ run : |
77+ export PKG_CONFIG_PATH_FOR_TARGET=${{ env.LMDB_PKGCONFIG }}:${PKG_CONFIG_PATH_FOR_TARGET:-}
78+ cabal build all -j --enable-tests --only-dependencies
6779 - name : cabal build
68- run : cabal build all -j --enable-tests
80+ run : |
81+ export PKG_CONFIG_PATH_FOR_TARGET=${{ env.LMDB_PKGCONFIG }}:${PKG_CONFIG_PATH_FOR_TARGET:-}
82+ cabal build all -j --enable-tests
6983 - name : postgres init
7084 working-directory :
7185 run : |
89103 start
90104 - name : cabal test
91105 run : |
106+ export PKG_CONFIG_PATH_FOR_TARGET=${{ env.LMDB_PKGCONFIG }}:${PKG_CONFIG_PATH_FOR_TARGET:-}
92107 # Create pgpass file
93108 export PGPASSFILE="${PG_DIR}/pgpass-testing"
94109 echo "${PG_DIR}:5432:$DBUSER:$DBUSER:*" > $PGPASSFILE
You can’t perform that action at this time.
0 commit comments