Skip to content

Commit

Permalink
updated go version to 1.21 (#608)
Browse files Browse the repository at this point in the history
* updated go version to 1.21

* Debug go build

* Use action@update-go - testing

* Change actions back to master

---------

Co-authored-by: peterlimg <[email protected]>
  • Loading branch information
shahnawaz-creator and peterlimg authored Apr 2, 2024
1 parent cbd276a commit acee9b8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-zbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
echo "GOPATH=$HOME/go" >> $GITHUB_ENV
echo "GOCACHE=$GITHUB_WORKSPACE/.gocache" >> $GITHUB_ENV
- name: Setup go 1.20
uses: actions/setup-go@v3
- name: Setup go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Install
run: |
Expand Down Expand Up @@ -109,10 +109,10 @@ jobs:
runs-on: macos-runner
steps:

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

- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gosdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
create-pr:
runs-on: [self-hosted, build]
steps:
- name: Setup go 1.20
uses: actions/setup-go@v2
- name: Setup go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Checkout
uses: actions/checkout@v1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
unit-test:
runs-on: [self-hosted, build]
steps:
- name: Setup go 1.20
uses: actions/setup-go@v2
- name: Setup go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Clone Zbox
uses: actions/checkout@v2
Expand All @@ -34,10 +34,10 @@ jobs:
runs-on: [self-hosted, build]
needs: unit-test
steps:
- name: Setup go 1.20
uses: actions/setup-go@v2
- name: Setup go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Clone 0Box
uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ default: help

#GO BUILD SDK
gomod-download:
go env
cat go.mod
go mod download
go mod tidy

Expand Down

0 comments on commit acee9b8

Please sign in to comment.