mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-09-05 23:56:50 +08:00
fix: remove go generate command from build process in Dockerfile and workflow
This commit is contained in:
@@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: Release Go Binary
|
- name: Release Go Binary
|
||||||
uses: wangyoucao577/go-release-action@v1
|
uses: wangyoucao577/go-release-action@v1
|
||||||
with:
|
with:
|
||||||
pre_command: export CGO_ENABLED=0 && go generate ./...
|
pre_command: export CGO_ENABLED=0
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
--mount=type=cache,target=/go/pkg \
|
--mount=type=cache,target=/go/pkg \
|
||||||
go generate ./... && \
|
|
||||||
CGO_ENABLED=0 \
|
CGO_ENABLED=0 \
|
||||||
go build -trimpath \
|
go build -trimpath \
|
||||||
-ldflags=" \
|
-ldflags=" \
|
||||||
|
|||||||
Reference in New Issue
Block a user