Skip to content

Commit

Permalink
Fix: go install (#95)
Browse files Browse the repository at this point in the history
* fix: go install

* fix README
  • Loading branch information
huangnauh authored May 26, 2023
1 parent 33b2b3a commit 17be1e3
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:

- name: Build
run: |
go build -v ./cmd/upx.go
go build -v ./cmd/upx
./upx -v
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-go@v2
- name: Build Upx
run: |
go build ./cmd/upx.go
go build ./cmd/upx
./upx login "${{ env.UPYUN_RELEASE_BUCKET }}" "${{ env.UPYUN_RELEASE_USERNAME }}" "${{ env.UPYUN_RELEASE_PASSWORD }}"
-
name: Run GoReleaser
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ jobs:
run: go mod download
- name: Test
run: |
go build -v ./cmd/upx.go
go build -v ./cmd/upx
go test -v ./...
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
upx
*.swo
*.swp
*.swn
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ before:
- go mod download
builds:
- id: "upx"
main: ./cmd/
main: ./cmd/upx
env:
- CGO_ENABLED=0
binary: upx
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PROJ_DIR= $(ROOT)/src/upyun.com
PWD= $(shell pwd)

app:
go build -o $(APP) ./cmd/upx.go
go build -o $(APP) ./cmd/upx/

test:
go test -v .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $ cd upx && make
or

```
$ go get -u github.com/upyun/upx@v0.4.0
$ go get -u github.com/upyun/upx/cmd/upx@master
```

### Windows
Expand Down
File renamed without changes.

0 comments on commit 17be1e3

Please sign in to comment.