Skip to content

Commit

Permalink
try fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jan 31, 2023
1 parent 2b2523c commit fafcac9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ jobs:
*.go
*.mod
*.sum
- run: |
- id: dep
run: |
nix profile install nixpkgs#rocksdb
export PKG_CONFIG_PATH=$HOME/.nix-profile/lib/pkgconfig
export CGO_CFLAGS="$(pkg-config --cflags rocksdb)" CGO_LDFLAGS="$(pkg-config --libs rocksdb)"
echo "CGO_CFLAGS=$(pkg-config --cflags rocksdb)" >> $GITHUB_OUTPUT
- uses: golangci/golangci-lint-action@v3
env:
CGO_ENABLED: 1
CGO_CFLAGS: "${{steps.dep.outputs.CGO_CFLAGS}}"
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.50
args: --timeout 10m --build-tags rocksdb,grocksdb_clean_link
args: --timeout 10m --build-tags rocksdb
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{ matrix.package }}
# Check only if there are differences in the source code
Expand Down

0 comments on commit fafcac9

Please sign in to comment.