Skip to content

Commit

Permalink
fix unittest workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jul 24, 2023
1 parent 6df5e5a commit 5cab48c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,8 @@ jobs:
make test
# run versiondb tests
nix profile install -f ./nix rocksdb
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 -f ./nix stdenv.cc.libc.out --no-link --print-out-paths)"
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
nix-shell -I nixpkgs=../nix -p rocksdb go_1_20 --run "go test -v -mod=readonly ./... -tags rocksdb,grocksdb_clean_link -coverprofile=coverage.txt"
if: steps.changed-files.outputs.any_changed == 'true'
- name: filter out proto files
run: |
Expand Down

0 comments on commit 5cab48c

Please sign in to comment.