ci: fix compile error

This commit is contained in:
Vincent Yang 2024-03-20 16:52:54 -04:00
parent a191d9d27f
commit f75bfc20f7
No known key found for this signature in database
GPG Key ID: 55F1635E821BF0E8
3 changed files with 6 additions and 4 deletions

View File

@ -2,8 +2,8 @@
### ###
# @Author: Vincent Young # @Author: Vincent Young
# @Date: 2022-10-20 02:19:06 # @Date: 2022-10-20 02:19:06
# @LastEditors: Vincent Young # @LastEditors: Vincent Yang
# @LastEditTime: 2023-02-18 20:45:52 # @LastEditTime: 2024-03-20 16:52:40
# @FilePath: /DeepLX/.cross_compile.sh # @FilePath: /DeepLX/.cross_compile.sh
# @Telegram: https://t.me/missuo # @Telegram: https://t.me/missuo
# #
@ -30,9 +30,9 @@ for pl in ${PLATFORMS}; do
echo "build => ${TARGET}" echo "build => ${TARGET}"
if [ "${DEBUG_MODE}" == "debug" ]; then if [ "${DEBUG_MODE}" == "debug" ]; then
CGO_ENABLED=0 go build -trimpath -gcflags "all=-N -l" -o ${TARGET} \ CGO_ENABLED=0 go build -trimpath -gcflags "all=-N -l" -o ${TARGET} \
-ldflags "-w -s" main.go -ldflags "-w -s" .
else else
CGO_ENABLED=0 go build -trimpath -o ${TARGET} \ CGO_ENABLED=0 go build -trimpath -o ${TARGET} \
-ldflags "-w -s" main.go -ldflags "-w -s" .
fi fi
done done

View File

@ -3,6 +3,7 @@
FROM golang:1.22 AS builder FROM golang:1.22 AS builder
WORKDIR /go/src/github.com/OwO-Network/DeepLX WORKDIR /go/src/github.com/OwO-Network/DeepLX
COPY main.go ./ COPY main.go ./
COPY dto.go ./
COPY go.mod ./ COPY go.mod ./
COPY go.sum ./ COPY go.sum ./
RUN go get -d -v ./ RUN go get -d -v ./

1
go.sum
View File

@ -23,6 +23,7 @@ github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg=
github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU=
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs=
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=