Initialize Go workspace (#483)
This commit is contained in:
parent
034a226999
commit
ea0206aed6
20 changed files with 13 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
go-version: stable
|
||||
|
||||
- name: Build
|
||||
run: go build -ldflags "-s -w" .
|
||||
run: make
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||
|
|
|
|||
4
Makefile
Normal file
4
Makefile
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
LDFLAGS = "-s -w"
|
||||
|
||||
build:
|
||||
go build -ldflags $(LDFLAGS) ./cli
|
||||
|
|
@ -38,7 +38,7 @@ scoop install discordo
|
|||
```bash
|
||||
git clone https://github.com/ayn2op/discordo
|
||||
cd discordo
|
||||
go build .
|
||||
make
|
||||
```
|
||||
|
||||
### Linux clipboard support
|
||||
|
|
|
|||
3
go.work
Normal file
3
go.work
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
go 1.23.4
|
||||
|
||||
use ./cli
|
||||
4
go.work.sum
Normal file
4
go.work.sum
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
|
||||
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
|
||||
Loading…
Add table
Reference in a new issue