Skip to content

Commit 583d755

Browse files
committed
go linter without cgo
1 parent db5b1d7 commit 583d755

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ jobs:
4141
uses: golangci/golangci-lint-action@v7
4242
with:
4343
version: ${{ env.LINT_VERSION }}
44+
args: internal/bls12381 sign/bls
45+
# https://github.com/golangci/golangci-lint-action/issues/244
46+
skip-cache: true
47+
- name: Run golangci-lint without cgo
48+
env:
49+
# TODO: run separate packages with cgo disabled
50+
CGO_ENABLED: 0
51+
uses: golangci/golangci-lint-action@v7
52+
with:
53+
version: ${{ env.LINT_VERSION }}
54+
args: --skip-dirs='^(internal/bls12381|sign/bls)$'
4455
# https://github.com/golangci/golangci-lint-action/issues/244
4556
skip-cache: true
4657

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ endif
3434
# test all packages
3535
.PHONY: test
3636
test:
37-
# TODO: run some packages with cgo disabled
3837
CGO_ENABLED=1 CGO_CFLAGS=$(ADX_FLAG) go test -coverprofile=$(COVER_PROFILE) $(RACE_FLAG) $(if $(JSON_OUTPUT),-json,) $(if $(VERBOSE),-v,) ./...
3938

4039

0 commit comments

Comments
 (0)