Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit 6a2366e

Browse files
committed
Update build config.
1 parent ee4a8e9 commit 6a2366e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/gobuild.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@ jobs:
2323
- name: go-mod
2424
run: go mod tidy
2525
- name: Build
26-
run: go build -o ./output/fulltclash-${{ matrix.os }}-amd64 fulltclash.go
26+
run: go build -ldflags="-s -w" -o ./output/fulltclash-${{ matrix.os }}-amd64 fulltclash.go
2727
- name: edit name
28-
if: runner.os == 'Windows'
29-
run: mv ./output/fulltclash-windows-latest-amd64 ./output/fulltclash-windows-latest-amd64.exe
28+
run: mv ./output/fulltclash-windows-latest-amd64 ./output/fulltclash-windows-amd64.exe
3029
- name: Upload artifact
3130
uses: actions/upload-artifact@v2
3231
with:
3332
name: fulltclash-${{ matrix.os }}-amd64
3433
path: ./output/*
3534
if-no-files-found: error
35+
- name: Upload artifact
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: fulltclash-windows-amd64.exe
39+
path: ./output/fulltclash-windows-amd64.exe
40+
if-no-files-found: error

0 commit comments

Comments
 (0)