Skip to content

Commit

Permalink
Merge pull request #325 from dswij/go-1.17-changes
Browse files Browse the repository at this point in the history
Update install command in README
  • Loading branch information
justjanne authored Aug 27, 2021
2 parents f27435b + 12af3a7 commit 05ad40e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 53 deletions.
63 changes: 11 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,14 @@
name: Build
on: push
jobs:
release-linux:
name: Build release binaries for linux
runs-on: ubuntu-latest
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: ${{ matrix.go-version }}
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
GOOS: linux
GOARCH: ${{ matrix.arch }}
release-macos:
name: Build release binaries for macOS
release:
name: Build release binaries
runs-on: ubuntu-latest
strategy:
matrix:
os: [ 'darwin', 'windows', 'freebsd', 'netbsd', 'openbsd' ]
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
go-version: [ '1.12', '1.13', '1.14', '1.15', '1.16', '1.17' ]
steps:
- name: Checkout the repository
uses: actions/checkout@master
Expand All @@ -39,36 +19,15 @@ jobs:
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
GOOS: darwin
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
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: ${{ matrix.go-version }}
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
GOOS: windows
GOARCH: amd64
release-bsd:
name: Build release binaries for BSD
release-linux:
name: Build release binaries for linux
runs-on: ubuntu-latest
strategy:
matrix:
os: [ 'freebsd', 'netbsd', 'openbsd' ]
go-version: [ '1.12', '1.13', '1.14', '1.15' ]
arch: [ 'amd64', 'arm64', 'arm' ]
go-version: [ '1.12', '1.13', '1.14', '1.15', '1.16', '1.17' ]
steps:
- name: Checkout the repository
uses: actions/checkout@master
Expand All @@ -79,5 +38,5 @@ jobs:
- run: go build -o release/powerline-go-$GOOS-$GOARCH
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.os }}
GOARCH: amd64
GOOS: linux
GOARCH: ${{ matrix.arch }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ I provide precompiled binaries for x64 Linux and macOS in the
- Install (and update) the package with

```bash
go get -u github.com/justjanne/powerline-go
go install github.com/justjanne/powerline-go@latest
```

- By default it will be in `$GOPATH/bin`, if you want to change that, you can set
Expand Down

0 comments on commit 05ad40e

Please sign in to comment.