-
-
Notifications
You must be signed in to change notification settings - Fork 888
160 lines (150 loc) · 4.29 KB
/
test.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: 'test'
on:
pull_request:
paths: ['**.go', 'go.mod', '.github/workflows/*']
push:
paths: ['**.go', 'go.mod', '.github/workflows/*']
jobs:
linux:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'ubuntu-latest']
go: ['1.17', '1.22']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
go-version: '${{ matrix.go }}'
- name: 'test'
run: './run-ci'
windows:
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
go: ['1.17', '1.22']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
go-version: '${{ matrix.go }}'
- name: 'test'
run: 'bash ./run-ci'
# Test gccgo
# Needs gccgo 13, which should be available in Ubuntu 24.04.
# gcc:
# runs-on: 'ubuntu-22.04'
# name: 'test (ubuntu-22.04, gccgo 12.1)'
# steps:
# - uses: 'actions/checkout@v4'
# - name: test
# run: |
# sudo apt-get -y install gccgo-12
# FSNOTIFY_BUFFER=4096 go-12 test -parallel 1 ./...
# go-12 test -parallel 1 ./...
# FSNOTIFY_DEBUG=1 go-12 test -parallel 1 -v ./...
# Test only the latest Go version on macOS; we use the macOS builders for BSD
# and illumos, and GitHub doesn't allow many of them to run concurrently. If
# it works on Windows and Linux with Go 1.17, then it probably does on macOS
# too.
macos:
name: 'test'
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
go-version: '1.22'
- name: 'test'
run: './run-ci'
# OpenBSD
openbsd:
runs-on: 'ubuntu-latest'
name: 'test (openbsd, 1.17)'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (openbsd, 1.17)'
id: 'openbsd'
uses: 'vmactions/openbsd-vm@v1'
with:
prepare: 'pkg_add go'
run: |
useradd -mG wheel action
export GO_NORACE=1
export GO_NOPARALLEL=1
export GO_COUNT=1
su action -c './run-ci'
# NetBSD
netbsd:
runs-on: 'ubuntu-latest'
name: 'test (netbsd, 1.21)'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (netbsd, 1.21)'
id: 'netbsd'
uses: 'vmactions/netbsd-vm@v1'
with:
prepare: 'pkg_add go'
run: |
useradd -mG wheel action
export GO=$(echo /usr/pkg/bin/go???)
export GO_COUNT=1
su action -c './run-ci'
# DragonFlyBSD
dragonflybsd:
runs-on: 'ubuntu-latest'
name: 'test (dragonflybsd, 1.20)'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (dragonflybsd, 1.20)'
id: 'dragonflybsd'
uses: 'vmactions/dragonflybsd-vm@v1'
with:
prepare: 'pkg install -y go'
run: |
pw user add -mG wheel -n action
setenv GO_NORACE 1
su action -c './run-ci'
# illumos
illumos:
runs-on: 'ubuntu-latest'
name: 'test (illumos, 1.22)'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (illumos, 1.22)'
id: 'illumos'
uses: 'vmactions/omnios-vm@v1'
with:
prepare: pkg install go-122
run: |
useradd action
export GOCACHE=/tmp/go-cache
export GOPATH=/tmp/go-path
export GO=/opt/ooce/go-1.22/bin/go
export GO_NORACE=1
su action -c './run-ci'
# Solaris
# TODO: latest version is go 1.7(!) Need to find a good way to install a more
# recent version; the go.dev doesn't have binaries for Solaris.
# solaris:
# runs-on: 'ubuntu-latest'
# name: 'test (solaris, 1.17)'
# steps:
# - uses: 'actions/checkout@v4'
# - name: 'test (solaris, 1.17)'
# id: 'solaris'
# uses: 'vmactions/solaris-vm@v1'
# with:
# prepare: pkg install pkg://solaris/developer/golang-17
# run: |
# useradd action
# export GOCACHE=/tmp/go-cache
# export GOPATH=/tmp/go-path
# su action -c './run-ci'