Import upstream version 0.1.1+git20190917.f675151, md5 ccfaab26547aa7a3a2e30b1d363d1be4
Debian Janitor
3 years ago
|
0 |
name: Go
|
|
1 |
|
|
2 |
on:
|
|
3 |
pull_request:
|
|
4 |
branches:
|
|
5 |
- master
|
|
6 |
push:
|
|
7 |
branches:
|
|
8 |
- master
|
|
9 |
|
|
10 |
jobs:
|
|
11 |
build:
|
|
12 |
name: Test on Go ${{ matrix.go-version }} and ${{ matrix.os }}
|
|
13 |
runs-on: ${{ matrix.os }}
|
|
14 |
strategy:
|
|
15 |
max-parallel: 4
|
|
16 |
matrix:
|
|
17 |
go-version: [1.13.x, 1.12.x]
|
|
18 |
os: [ubuntu-latest, windows-latest]
|
|
19 |
steps:
|
|
20 |
- name: Set up Go ${{ matrix.go-version }}
|
|
21 |
uses: actions/setup-go@v1
|
|
22 |
with:
|
|
23 |
go-version: ${{ matrix.go-version }}
|
|
24 |
id: go
|
|
25 |
|
|
26 |
- name: Check out code into the Go module directory
|
|
27 |
uses: actions/checkout@v1
|
|
28 |
|
|
29 |
- name: Build on ${{ matrix.os }}
|
|
30 |
if: matrix.os == 'windows-latest'
|
|
31 |
run: go test -race -v ./...
|
|
32 |
- name: Build on ${{ matrix.os }}
|
|
33 |
if: matrix.os == 'ubuntu-latest'
|
|
34 |
run: |
|
|
35 |
diff -au <(gofmt -d .) <(printf "")
|
|
36 |
go test -race -v ./...
|
|
37 |
go vet -asmdecl .
|
|
38 |
./test-architectures.sh
|
0 | |
sudo: required
|
1 | |
dist: trusty
|
2 | |
language: go
|
3 | |
|
4 | |
os:
|
5 | |
- linux
|
6 | |
|
7 | |
go:
|
8 | |
- tip
|
9 | |
- 1.12.x
|
10 | |
|
11 | |
env:
|
12 | |
- ARCH=x86_64
|
13 | |
- ARCH=i686
|
14 | |
|
15 | |
matrix:
|
16 | |
fast_finish: true
|
17 | |
allow_failures:
|
18 | |
- go: tip
|
19 | |
|
20 | |
script:
|
21 | |
- diff -au <(gofmt -d .) <(printf "")
|
22 | |
- go test -race -v ./...
|
23 | |
- go vet -asmdecl .
|
24 | |
- ./test-architectures.sh
|
0 | |
# version format
|
1 | |
version: "{build}"
|
2 | |
|
3 | |
# Operating system (build VM template)
|
4 | |
os: Windows Server 2012 R2
|
5 | |
|
6 | |
# Platform.
|
7 | |
platform: x64
|
8 | |
|
9 | |
clone_folder: c:\gopath\src\github.com\minio\sha256-simd
|
10 | |
|
11 | |
# environment variables
|
12 | |
environment:
|
13 | |
GOPATH: c:\gopath
|
14 | |
GO15VENDOREXPERIMENT: 1
|
15 | |
|
16 | |
# scripts that run after cloning repository
|
17 | |
install:
|
18 | |
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
19 | |
- go version
|
20 | |
- go env
|
21 | |
|
22 | |
# to run your custom scripts instead of automatic MSBuild
|
23 | |
build_script:
|
24 | |
- go test .
|
25 | |
- go test -race .
|
26 | |
|
27 | |
# to disable automatic tests
|
28 | |
test: off
|
29 | |
|
30 | |
# to disable deployment
|
31 | |
deploy: off
|