-
Notifications
You must be signed in to change notification settings - Fork 106
55 lines (45 loc) · 1.13 KB
/
Copy pathgo.yml
File metadata and controls
55 lines (45 loc) · 1.13 KB
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
54
55
name: Go
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: Build
strategy:
matrix:
go-version: [1.26, 1.25]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v7
with:
submodules: true
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test -race -v ./...
test-386:
name: Test (Go 1.25, linux/386)
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.25
uses: actions/setup-go@v7
with:
go-version: "1.25"
- name: Check out code into the Go module directory
uses: actions/checkout@v7
with:
submodules: true
- name: Test
env:
CGO_ENABLED: 0
GOARCH: "386"
run: go test -count=1 -v ./...