Skip to content

Commit

Permalink
Enhancement [#268] Add more go versions to our test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jan 6, 2021
1 parent 80d2dea commit c967654
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ jobs:
strategy:
matrix:
arch: [ 'amd64', 'arm64', 'arm' ]
go-version: [ '1.12', '1.13', '1.14', '1.15' ]
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: ${{ matrix.go-version }}
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand All @@ -25,6 +26,7 @@ jobs:
strategy:
matrix:
arch: [ 'amd64' ]
go-version: [ '1.12', '1.13', '1.14', '1.15' ]
# arm64 for darwin is disabled as it's not currently supported by the go
# compiler for our use case
steps:
Expand All @@ -33,7 +35,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: ${{ matrix.go-version }}
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand All @@ -42,13 +44,19 @@ jobs:
release-windows:
name: Build release binaries for windows
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ 'amd64' ]
go-version: [ '1.12', '1.13', '1.14', '1.15' ]
# arm64 for windows is disabled as it's not currently supported by the
# go compiler for our use case
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: ${{ matrix.go-version }}
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand All @@ -60,13 +68,14 @@ jobs:
strategy:
matrix:
os: [ 'freebsd', 'netbsd', 'openbsd' ]
go-version: [ '1.12', '1.13', '1.14', '1.15' ]
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: ${{ matrix.go-version }}
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: '1.15'
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: '1.15'
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: '1.15'
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.14'
go-version: '1.15'
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
Expand Down

0 comments on commit c967654

Please sign in to comment.