This repository was archived by the owner on Dec 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-67
lines changed
Expand file tree Collapse file tree 5 files changed +8
-67
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,17 @@ jobs:
3232 NAME : clash
3333 BINDIR : bin
3434 run : |
35- make build_dep
3635 make -j releases
3736
37+ - name : Upload Artifact
38+ uses : actions/upload-artifact@v4
39+ if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
40+ with :
41+ path : build/releases/*
42+
3843 - name : Upload Release
3944 uses : softprops/action-gh-release@v2
40- if : startsWith(github.ref, 'refs/tags/')
45+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
4146 with :
4247 files : build/releases/*
4348 draft : false
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ NAME=clash-core
22BUILDDIR =build/releases
33VERSION =$(shell git describe --tags || echo v0.0.0-test)
44BUILDTIME =$(shell date -u)
5- GOBUILD=CGO_ENABLED =0 go generate && go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION ) " \
5+ GOBUILD=CGO_ENABLED =0 go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION ) " \
66 -X "github.com/Dreamacro/clash/constant.BuildTime=$(BUILDTIME ) " \
77 -w -s -buildid='
88
@@ -25,9 +25,6 @@ WINDOWS_ARCH_LIST = \
2525 windows-arm64 \
2626 windows-armv7
2727
28- build_dep :
29- go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest
30-
3128all : linux-amd64 windows-amd64 # Most used
3229
3330linux-386 :
Original file line number Diff line number Diff line change 1- //go:generate goversioninfo
21package main
32
43import (
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments