Skip to content

Commit

Permalink
Merge pull request #2 from masif-upgrader/feature/gha
Browse files Browse the repository at this point in the history
GitHub actions: build and test
  • Loading branch information
Al2Klimov authored Mar 19, 2021
2 parents 2139760 + 39c5d94 commit 32fa044
Showing 1 changed file with 124 additions and 0 deletions.
124 changes: 124 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: Go
on:
push:
branches:
- master
pull_request: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.11'
- '1.12'
- '1.13'
- '1.14'
- '1.15'
- '1.16'
goenv:
- GOARCH=386 GO386=sse2
- GOARCH=amd64
- GOARCH=arm GOARM=5
- GOARCH=arm GOARM=6
- GOARCH=arm GOARM=7
- GOARCH=arm64
- GOARCH=ppc64 GOPPC64=power8
- GOARCH=ppc64 GOPPC64=power9
- GOARCH=ppc64le GOPPC64=power8
- GOARCH=ppc64le GOPPC64=power9
- GOARCH=mips GOMIPS=softfloat
- GOARCH=mips GOMIPS=hardfloat
- GOARCH=mipsle GOMIPS=softfloat
- GOARCH=mipsle GOMIPS=hardfloat
- GOARCH=mips64 GOMIPS64=softfloat
- GOARCH=mips64 GOMIPS64=hardfloat
- GOARCH=mips64le GOMIPS64=softfloat
- GOARCH=mips64le GOMIPS64=hardfloat
- GOARCH=s390x
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v1
- run: go generate ./...
- run: ${{ matrix.goenv }} go build ./...
build_386_387:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.11'
- '1.12'
- '1.13'
- '1.14'
- '1.15'
goenv:
- GOARCH=386 GO386=387
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v1
- run: go generate ./...
- run: ${{ matrix.goenv }} go build ./...
build_386_softfloat:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.16'
goenv:
- GOARCH=386 GO386=softfloat
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v1
- run: go generate ./...
- run: ${{ matrix.goenv }} go build ./...
build_riscv64:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.14'
- '1.15'
- '1.16'
goenv:
- GOARCH=riscv64
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v1
- run: go generate ./...
- run: ${{ matrix.goenv }} go build ./...
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.11'
- '1.12'
- '1.13'
- '1.14'
- '1.15'
- '1.16'
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v1
- run: go generate ./...
- run: go test -race -v ./...

0 comments on commit 32fa044

Please sign in to comment.