diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5baaec9..a497708 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,15 +24,21 @@ jobs: - name: Download dependencies run: go mod download + # - name: Build + # run: go build -v ./cmd/session + - name: Build - run: go build -v ./cmd/session + run: go build -v -o session ./cmd/session - name: Install - run: | - go install -v -trimpath -ldflags="-s -w" ./cmd/session - mv $GOPATH/bin/session /usr/local/bin/session + run: mv session /usr/local/bin/session + + # - name: Install + # run: | + # go install -v -trimpath -ldflags="-s -w" ./cmd/session + # mv $GOPATH/bin/session /usr/local/bin/session - name: Display Go version and installed binary path run: | go version - echo $GOPATH/bin/session + echo /usr/local/bin/session