mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 16:49:43 +00:00
Bump Go version to 1.16
This allows Go to build a native binary for Apple Silicon. GoReleaser is used to build and release this project, GoReleaser v0.157.0 released on 2021-02-17 will build a fitting binary automatically as long as Go 1.16 is used. A bump of the Go version should be everything that's needed to get this working natively on Apple Silicon.
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -13,8 +13,8 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.16
|
||||||
- name: Set up Git
|
- name: Set up Git
|
||||||
run: git config --global user.email "grdl@example.com" && git config --global user.name "grdl"
|
run: git config --global user.email "grdl@example.com" && git config --global user.name "grdl"
|
||||||
- name: Run go test
|
- name: Run go test
|
||||||
run: CGO_ENABLED=0 GOOS=linux go test ./... -v
|
run: CGO_ENABLED=0 GOOS=linux go test ./... -v
|
||||||
|
|||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -14,11 +14,11 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.16
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --rm-dist
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user