From 07acbbd0c799b9d4509393910704b6c3e3038a4f Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Sat, 24 Feb 2024 03:29:08 +0800 Subject: [PATCH] test --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cde3395e1..abc00d6a95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,9 @@ jobs: CGO_ENABLED: '0' run: | go build -v -tags "with_gvisor" -trimpath -ldflags "-X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -X 'github.com/metacubex/mihomo/constant.BuildTime=${BUILDTIME}' -w -s -buildid=" + mv mihomo mihomo-${GOOS}-${output}-${VERSION} + if [ "${GOOS}" = "windows" ]; then zip -r mihomo-${GOOS}-${output}-${VERSION}.zip mihomo-${GOOS}-${output}-${VERSION}; else tar -czvf mihomo-${GOOS}-${output}-${VERSION}.tar.gz mihomo-${GOOS}-${output}-${VERSION}; fi + rm mihomo-${GOOS}-${output}-${VERSION} ls - name: Archive production artifacts