display go version in make (#4003)

This commit is contained in:
fatedier 2024-02-19 17:46:47 +08:00 committed by GitHub
parent 2f958c2095
commit 4957fd23ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 21 deletions

View File

@ -14,10 +14,10 @@ jobs:
name: lint name: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '1.22' go-version: '1.22'
- uses: actions/checkout@v4
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v4 uses: golangci/golangci-lint-action@v4
with: with:

View File

@ -2,10 +2,13 @@ export PATH := $(GOPATH)/bin:$(PATH)
export GO111MODULE=on export GO111MODULE=on
LDFLAGS := -s -w LDFLAGS := -s -w
all: fmt build all: env fmt build
build: frps frpc build: frps frpc
env:
@go version
# compile assets into binary file # compile assets into binary file
file: file:
rm -rf ./assets/frps/static/* rm -rf ./assets/frps/static/*