mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
fix ci
This commit is contained in:
parent
2d9769837f
commit
4266ff0e41
1 changed files with 11 additions and 13 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -16,19 +16,6 @@ jobs:
|
||||||
go-version: '1.23'
|
go-version: '1.23'
|
||||||
- run: go version
|
- run: go version
|
||||||
- run: go test -v ./...
|
- run: go test -v ./...
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.20'
|
|
||||||
- name: Build Windows 7
|
|
||||||
run: |
|
|
||||||
go version
|
|
||||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o croc.exe
|
|
||||||
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags '-extldflags "-static"' -o croc.exe
|
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.23'
|
|
||||||
- name: Build files
|
- name: Build files
|
||||||
run: |
|
run: |
|
||||||
go version
|
go version
|
||||||
|
@ -51,3 +38,14 @@ jobs:
|
||||||
CGO_ENABLED=0 GOOS=netbsd GOARCH=arm64 go build -ldflags '' -o croc
|
CGO_ENABLED=0 GOOS=netbsd GOARCH=arm64 go build -ldflags '' -o croc
|
||||||
CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 go build -ldflags '' -o croc
|
CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 go build -ldflags '' -o croc
|
||||||
CGO_ENABLED=0 GOOS=openbsd GOARCH=arm64 go build -ldflags '' -o croc
|
CGO_ENABLED=0 GOOS=openbsd GOARCH=arm64 go build -ldflags '' -o croc
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
- name: Build Windows 7
|
||||||
|
run: |
|
||||||
|
go version
|
||||||
|
rm go.mod go.sum
|
||||||
|
go mod tidy
|
||||||
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o croc.exe
|
||||||
|
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags '-extldflags "-static"' -o croc.exe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue