update go version to 1.16 and goreleaser to support M1 macOS (arm64)

pull/159/head
Vít Listík 5 years ago
parent 61ce618ed7
commit ef001b481c
  1. 6
      .github/workflows/release.yaml
  2. 6
      scripts/rawinstall.sh

@ -17,12 +17,12 @@ jobs:
run: git submodule update --init --recursive run: git submodule update --init --recursive
- -
name: Set up Go name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v2
with: with:
go-version: '1.12' go-version: 1.16
- -
name: Run GoReleaser name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1 uses: goreleaser/goreleaser-action@v2
with: with:
version: latest version: latest
args: release args: release

@ -68,9 +68,9 @@ arm64|aarch64*|armv8*)
esac esac
if [ "$OS" = darwin ]; then if [ "$OS" = darwin ]; then
if [ "$ARCH" = armv6 ] || [ "$ARCH" = arm64 ]; then if [ "$ARCH" = armv6 ] ; then
echo "It seems that you are running macOS on arm - exiting!" echo "It seems that you are running macOS on armv6 - exiting!"
echo "Expected Linux or macOS on x86_64 or i386 (or Linux on arm or arm64)" echo "Expected Linux or macOS on x86_64 or i386 (or Linux on arm or arm64 or macOS on arm64)"
echo "Got OS: $(uname) (uname)" echo "Got OS: $(uname) (uname)"
echo "Got ARCH: $(uname -m) (uname -m)" echo "Got ARCH: $(uname -m) (uname -m)"
exit 1 exit 1

Loading…
Cancel
Save