Skip to content

Commit

Permalink
Update Go version to 1.16beta1
Browse files Browse the repository at this point in the history
Add macOS arm64 example.
Add go1.16 to list of branches to test.
  • Loading branch information
andrewkroh committed Jan 16, 2021
1 parent df350df commit 4141a11
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 'go*'
paths:
- '**.go'
- 'go.mod'
Expand All @@ -28,7 +29,7 @@ jobs:
- name: set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: 1.16beta1

- name: check fmt
run: find . -name '*.go' | xargs gofmt -l | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true
Expand Down Expand Up @@ -56,4 +57,4 @@ jobs:
-output='build/bin/{{.Dir}}-{{.OS}}-{{.Arch}}' \
-os='windows linux darwin freebsd' \
-arch='amd64 386 arm arm64' \
-osarch='!darwin/386 !darwin/arm !darwin/arm64' ./cmd/gvm
-osarch='!darwin/386 !darwin/arm' ./cmd/gvm
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: 1.16beta1

- name: install gox
env:
Expand All @@ -35,7 +35,7 @@ jobs:
-output='build/bin/{{.Dir}}-{{.OS}}-{{.Arch}}' \
-os='windows linux darwin freebsd' \
-arch='amd64 386 arm arm64' \
-osarch='!darwin/386 !darwin/arm !darwin/arm64' ./cmd/gvm
-osarch='!darwin/386 !darwin/arm' ./cmd/gvm
- name: create draft release
id: create_release
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- Updated Go version used in building to 1.16.
- Add an artifact for Apple M1 (darwin/arm64).

## [0.3.0]

### Added
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ eval "$(gvm 1.15.6)"
go version
```

macOS:

macOS (amd64):
``` bash
# macOS Example
curl -sL -o /usr/local/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.3.0/gvm-darwin-amd64
Expand All @@ -47,6 +46,16 @@ eval "$(gvm 1.15.6)"
go version
```

macOS (arm64, aka M1):

``` bash
# macOS Example
curl -sL -o /usr/local/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.3.0/gvm-darwin-arm64
chmod +x /usr/local/bin/gvm
eval "$(gvm 1.15.6)"
go version
```

Windows (Powershell):

```
Expand Down

0 comments on commit 4141a11

Please sign in to comment.