File tree Expand file tree Collapse file tree 1 file changed +0
-40
lines changed
Expand file tree Collapse file tree 1 file changed +0
-40
lines changed Original file line number Diff line number Diff line change 1010 branches : [ main, master ]
1111
1212jobs :
13- build-windows :
14- runs-on : windows-latest
15- steps :
16- - uses : actions/checkout@main
17-
18- - uses : actions/setup-go@main
19- with :
20- go-version : stable
21-
22- - name : Run Windows winHealth build test
23- run : |
24- go test ./winHealth
25- env :
26- CGO_ENABLED : 0
27- shell : bash
28-
29- - name : Get version from git
30- id : version
31- run : |
32- if [ "${{ github.ref }}" == "refs/heads/main" ] || [ "${{ github.ref }}" == "refs/heads/master" ]; then
33- VERSION="dev"
34- else
35- VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
36- fi
37- echo "version=$VERSION" >> $GITHUB_OUTPUT
38- shell : bash
39-
40- - name : Build Windows binary
41- run : |
42- VERSION="${{ steps.version.outputs.version }}"
43- go build -o monokit.exe -ldflags="-X github.com/monobilisim/monokit/common.MonokitVersion=${VERSION}" -tags="" .
44- env :
45- CGO_ENABLED : 0
46-
47- - name : Upload Windows binary
48- uses : actions/upload-artifact@v4
49- with :
50- name : monokit-windows-amd64
51- path : monokit.exe
52-
5313 test :
5414 runs-on : ubuntu-latest
5515 steps :
You can’t perform that action at this time.
0 commit comments