-
Notifications
You must be signed in to change notification settings - Fork 18
36 lines (30 loc) · 815 Bytes
/
win.yml
File metadata and controls
36 lines (30 loc) · 815 Bytes
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
name: Windows CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~\go\pkg\mod
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build
- name: Test
run: go test -timeout 2m ./...
- name: Compile tests/benchmarks
run: make compile-tests
- name: Build all examples
run: go build ./examples/...