From 5731d9a01c8f61a92867547c33fc3cdd60fd7d16 Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Mon, 22 Jan 2024 13:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dotp=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=20=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5f64d25..b08c6d1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,13 +14,13 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: 1.20 id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get dependencies run: | @@ -32,7 +32,7 @@ jobs: cd server mkdir ui touch ui/index.html - go build -v -o anylink -ldflags "-X main.CommitId=`git rev-parse HEAD`" + go build -v -o anylink -trimpath -ldflags "-X main.CommitId=`git rev-parse HEAD`" ./anylink tool -v - name: Test coverage