Fix go.yml CI.
This commit is contained in:
parent
7b01faa277
commit
ef80b58c8b
1 changed files with 14 additions and 6 deletions
|
@ -22,17 +22,25 @@ jobs:
|
||||||
go-version: '>=1.22'
|
go-version: '>=1.22'
|
||||||
cache: false
|
cache: false
|
||||||
- name: release-build-linux-amd64
|
- name: release-build-linux-amd64
|
||||||
run: GOOS=linux GOARCH=amd64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/opendtu-logger-${{ github.ref_name }}-linux-amd64
|
run: GOOS=linux GOARCH=amd64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-linux-amd64
|
||||||
|
- name: release-build-linux-386
|
||||||
|
run: GOOS=linux GOARCH=386 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-linux-386
|
||||||
- name: release-build-linux-arm64
|
- name: release-build-linux-arm64
|
||||||
run: GOOS=linux GOARCH=arm64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/opendtu-logger-${{ github.ref_name }}-linux-arm64
|
run: GOOS=linux GOARCH=arm64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-linux-arm64
|
||||||
|
- name: release-build-linux-arm
|
||||||
|
run: GOOS=linux GOARCH=arm go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-linux-arm
|
||||||
|
- name: release-build-linux-riscv64
|
||||||
|
run: GOOS=linux GOARCH=riscv64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-linux-riscv64
|
||||||
|
|
||||||
- name: release-build-windows-amd64
|
- name: release-build-windows-amd64
|
||||||
run: GOOS=windows GOARCH=amd64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/opendtu-logger-${{ github.ref_name }}-windows-amd64.exe
|
run: GOOS=windows GOARCH=amd64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-windows-amd64.exe
|
||||||
- name: release-build-windows-arm64
|
- name: release-build-windows-arm64
|
||||||
run: GOOS=windows GOARCH=arm64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/opendtu-logger-${{ github.ref_name }}-windows-arm64.exe
|
run: GOOS=windows GOARCH=arm64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-windows-arm64.exe
|
||||||
|
|
||||||
- name: release-build-darwin-amd64
|
- name: release-build-darwin-amd64
|
||||||
run: GOOS=darwin GOARCH=amd64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/opendtu-logger-${{ github.ref_name }}-darwin-amd64
|
run: GOOS=darwin GOARCH=amd64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-darwin-amd64
|
||||||
- name: release-build-darwin-arm64
|
- name: release-build-darwin-arm64
|
||||||
run: GOOS=darwin GOARCH=arm64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/opendtu-logger-${{ github.ref_name }}-darwin-arm64
|
run: GOOS=darwin GOARCH=arm64 go build -v -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/p1-logger-${{ github.ref_name }}-darwin-arm64
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
|
Loading…
Reference in a new issue