forked from kubeovn/kube-ovn
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.16 KB
/
build-windows.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build Windows Binaries
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
- '**.md'
push:
branches:
- master
- release-*
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
build:
name: Build Windows x86
runs-on: windows-2019
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.17.8
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Go Build Cache
uses: actions/cache@v2
with:
path: /home/runner/.cache/go-build
key: ${{ runner.os }}-go-x86-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-x86-build-
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: |
go mod tidy
go install github.com/securego/gosec/cmd/gosec@latest
make lint-windows
make build-go-windows