Skip to content

Commit 432e0e4

Browse files
committed
CI: Build Windows binaries
1 parent 21dd6a3 commit 432e0e4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
cc: arm-linux-gnueabihf-gcc
2222
- target: aarch64-linux-gnu
2323
cc: aarch64-linux-gnu-gcc
24+
- target: i686-w64-mingw32
25+
cc: i686-w64-mingw32-gcc
26+
- target: x86_64-w64-mingw32
27+
cc: x86_64-w64-mingw32-gcc
2428
env:
2529
CC: ${{ matrix.cc }}
2630
steps:
@@ -95,24 +99,38 @@ jobs:
9599
matrix:
96100
include:
97101
- target: x86-64-linux-gnu
102+
goos: linux
98103
goarch: amd64
99104
goamd64: v1
100105
cc: gcc
101106
tar: linux_x86_64
102107
- target: arm-rpi-linux-gnueabihf
108+
goos: linux
103109
goarch: arm
104110
goarm: 6
105111
cc: arm-rpi-linux-gnueabihf-gcc
106112
tar: linux_armv6_rpi
107113
- target: arm-linux-gnueabihf
114+
goos: linux
108115
goarch: arm
109116
goarm: 6
110117
cc: arm-linux-gnueabihf-gcc
111118
tar: linux_armv6
112119
- target: aarch64-linux-gnu
120+
goos: linux
113121
goarch: arm64
114122
cc: aarch64-linux-gnu-gcc
115123
tar: linux_arm64
124+
- target: i686-w64-mingw32
125+
goos: windows
126+
goarch: 386
127+
cc: i686-w64-mingw32-gcc
128+
tar: windows_386
129+
- target: x86_64-w64-mingw32
130+
goos: windows
131+
goarch: amd64
132+
cc: x86_64-w64-mingw32-gcc
133+
tar: windows_x86-64
116134
steps:
117135
- uses: actions/checkout@v3
118136
with:
@@ -161,6 +179,8 @@ jobs:
161179
-o ./go-librespot ./cmd/daemon
162180
tar -zcvf /tmp/out/go-librespot_${{ matrix.tar }}.tar.gz go-librespot README.md
163181
182+
# TODO: copy Windows DLLs to archive
183+
164184
- name: Upload compiled binary
165185
uses: actions/upload-artifact@v3
166186
with:

0 commit comments

Comments
 (0)