Skip to content

Commit 6d0c158

Browse files
committed
ci: add Windows build workflow
1 parent 9b87a6c commit 6d0c158

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Windows Build
2+
3+
on:
4+
push:
5+
branches: [main, master, windows]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@main
14+
15+
- uses: actions/setup-go@main
16+
with:
17+
go-version: stable
18+
19+
- name: Build Windows binary
20+
run: go build -o monokit.exe -ldflags "-X github.com/monobilisim/monokit/common.MonokitVersion=dev" .
21+
22+
- name: Upload Windows binary
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: monokit-windows-amd64
26+
path: monokit.exe

0 commit comments

Comments
 (0)