Skip to content

Commit

Permalink
Merge pull request #220 from 0chain/fix/setup_go
Browse files Browse the repository at this point in the history
fix(Makefile): improve gomod-download
  • Loading branch information
dabasov authored Apr 22, 2022
2 parents 47f1d4e + ef0bd95 commit 18226d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-zbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Setup go 1.16
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.16' # The Go version to download (if necessary) and use.
go-version: '1.18' # The Go version to download (if necessary) and use.

- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -63,10 +63,10 @@ jobs:
name: Build-windows
runs-on: windows-latest
steps:
- name: Setup go 1.16
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.16' # The Go version to download (if necessary) and use.
go-version: '1.18' # The Go version to download (if necessary) and use.

- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -112,10 +112,10 @@ jobs:
runs-on: macos-latest
steps:

- name: Setup go 1.16
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.16' # The Go version to download (if necessary) and use.
go-version: '1.18' # The Go version to download (if necessary) and use.

- name: Checkout
uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-zboxcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
go-version: ^1.18

- name: Install
run: make install
Expand Down Expand Up @@ -97,10 +97,10 @@ jobs:
name: Build-windows
runs-on: windows-latest
steps:
- name: Setup go 1.16
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.16' # The Go version to download (if necessary) and use.
go-version: '1.18' # The Go version to download (if necessary) and use.

- name: Checkout
uses: actions/checkout@v2
Expand All @@ -125,10 +125,10 @@ jobs:
runs-on: macos-latest
steps:

- name: Setup go 1.16
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.16' # The Go version to download (if necessary) and use.
go-version: '1.18' # The Go version to download (if necessary) and use.

- name: Checkout
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ default: help show
#GO BUILD SDK
gomod-download:
go mod download
go mod tidy

gomod-clean:
go clean -i -r -x -modcache ./...
Expand Down

0 comments on commit 18226d1

Please sign in to comment.