From c4bde35db6e52094622fa3d63e296f5234139501 Mon Sep 17 00:00:00 2001 From: Hans Moog <hm@mkjc.net> Date: Wed, 4 Mar 2020 11:40:28 +0100 Subject: [PATCH] Feat: Change to go 1.14 --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- .goreleaser.yml | 6 +----- Dockerfile | 2 +- README.md | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cee5c81c..d6bc025f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: name: Release runs-on: [ubuntu-latest] container: - image: iotmod/goreleaser-cgo-cross-compiler:1.13.5 + image: iotmod/goreleaser-cgo-cross-compiler:1.4 volumes: [/repo] steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7bc37ca..cce7f463 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.13 + - name: Set up Go 1.14 uses: actions/setup-go@v1 with: - go-version: 1.13 + go-version: 1.14 - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.goreleaser.yml b/.goreleaser.yml index 3d250a15..50e6ac80 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,13 +13,9 @@ builds: - id: goshimmer-darwin-amd64 binary: goshimmer env: - - CGO_ENABLED=1 - - CC=o64-clang - - CXX=o64-clang++ + - CGO_ENABLED=0 ldflags: - -s -w -X github.com/iotaledger/goshimmer/plugins/cli.AppVersion={{.Version}} - flags: - - -tags=pow_avx main: main.go goos: - darwin diff --git a/Dockerfile b/Dockerfile index fda2f888..b786c918 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # we need to use alpine to build since cgo is required -FROM golang:1.13-alpine AS build +FROM golang:1.14-alpine AS build RUN apk add --no-cache git gcc g++ # Set the current Working Directory inside the container diff --git a/README.md b/README.md index 0fc5a332..413e2183 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ If you want to build your own executable file, you need to follow these steps. #### Prerequisites -To complete this guide, you need to have at least [version 1.13 of Go installed](https://golang.org/doc/install) on your device. +To complete this guide, you need to have at least [version 1.14 of Go installed](https://golang.org/doc/install) on your device. To check if you have Go installed, run the following command: -- GitLab