separate hyp and hypd build into different steps, add windows build
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Steven Polley 2024-04-14 18:19:52 -06:00
parent 5f10c27b0f
commit 977aef9ee2

View File

@ -16,7 +16,8 @@ steps:
include: include:
- environment - environment
- name: build hyp linux-amd64
- name: build hyp (client) linux-amd64
image: registry.deadbeef.codes/hyp-build:latest image: registry.deadbeef.codes/hyp-build:latest
pull: always pull: always
volumes: volumes:
@ -37,6 +38,44 @@ steps:
- go build . - go build .
- mv -f hypd /dist - mv -f hypd /dist
- name: build hypd (server) linux-amd64
image: registry.deadbeef.codes/hyp-build:latest
pull: always
volumes:
- name: publicrelease
path: /dist
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
commands:
- . /root/.profile
- cd hypd/server
- go generate
- cd ..
- go build .
- mv -f hypd /dist
- name: build hyp (client) windows-amd64
image: registry.deadbeef.codes/hyp-build:latest
pull: always
volumes:
- name: publicrelease
path: /dist
environment:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
commands:
- . /root/.profile
- cd hyp
- go build .
- mv -f hyp.exe /dist
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release
pull: always pull: always