From 977aef9ee2af105cb306321be5e738ae28c97c4f Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sun, 14 Apr 2024 18:19:52 -0600 Subject: [PATCH] separate hyp and hypd build into different steps, add windows build --- .drone.yml | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8c6cf15..47713cb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,8 @@ steps: include: - environment -- name: build hyp linux-amd64 + +- name: build hyp (client) linux-amd64 image: registry.deadbeef.codes/hyp-build:latest pull: always volumes: @@ -37,6 +38,44 @@ steps: - go build . - 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 image: plugins/gitea-release pull: always