From d828582922eeecf43baac7d1da4c4e533aa1dd66 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Sat, 2 Mar 2024 14:01:39 +0800 Subject: [PATCH] Test building with vendored modules --- .github/workflows/go.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 46eb0e8..39146e5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,6 +23,9 @@ jobs: - name: Get dependencies run: go get -v -t -d ./... + - name: Test building with vendoring (#35) + run: go mod vendor && go build -mod=vendor ./cli/main.go + - name: Build run: | CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -ldflags="-s -w" -o auth-thu.macos.x86_64 ./cli/main.go