Skip to content

Commit

Permalink
try fix unittest in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Apr 19, 2023
1 parent 3836457 commit 1b274f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
export PKG_CONFIG_PATH=$HOME/.nix-profile/lib/pkgconfig
export CGO_CFLAGS="$(pkg-config --cflags rocksdb)" CGO_LDFLAGS="$(pkg-config --libs rocksdb)"
export LD_LIBRARY_PATH=$HOME/.nix-profile/lib
export GLIBC="$(nix-build -E "(import <nixpkgs> {}).glibc" --no-out-link)"
export CGO_LDFLAGS="$CGO_LDFLAGS -Wl,--dynamic-linker=$GLIBC/lib/ld-linux-x86-64.so.2"
echo $CGO_LDFLAGS
cd ./versiondb
go test -v -mod=readonly ./... -tags rocksdb,grocksdb_clean_link -coverprofile=coverage.txt
if: steps.changed-files.outputs.any_changed == 'true'
Expand Down

0 comments on commit 1b274f7

Please sign in to comment.