feat: build windows in pipeline

This commit is contained in:
James Houlahan
2020-05-18 10:30:18 +02:00
parent 66f23bef99
commit 41f6cd3bcd
2 changed files with 21 additions and 1 deletions

View File

@ -134,6 +134,26 @@ build-darwin:
- bridge_*.tgz - bridge_*.tgz
expire_in: 2 week expire_in: 2 week
build-windows:
stage: build
services:
- docker:dind
only:
- devel
variables:
DOCKER_HOST: tcp://docker:2375
script:
- curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
- apt-get update && apt-get -y install binutils-mingw-w64
- ln -s /usr/bin/x86_64-w64-mingw32-windres /usr/bin/windres
- go mod download
- TARGET_OS=windows make build
artifacts:
name: "bridge-windows-$CI_COMMIT_SHORT_SHA"
paths:
- bridge_*.tgz
expire_in: 2 week
mirror-repo: mirror-repo:
stage: mirror stage: mirror
only: only:

View File

@ -84,7 +84,7 @@ logo.ico: ./internal/frontend/share/icons/logo.ico
icon.rc: ./internal/frontend/share/icon.rc icon.rc: ./internal/frontend/share/icon.rc
cp $^ . cp $^ .
./internal/frontend/qt/icon_windows.syso: ./internal/frontend/share/icon.rc logo.ico ./internal/frontend/qt/icon_windows.syso: ./internal/frontend/share/icon.rc logo.ico
windres --target=coff-x86-64 -o $@ $< windres --target=pe-x86-64 -o $@ $<
icon_windows.syso: ./internal/frontend/qt/icon_windows.syso icon_windows.syso: ./internal/frontend/qt/icon_windows.syso
cp $^ . cp $^ .