Skip to content

Commit

Permalink
Merge pull request #357 from ava-labs/golang-1.21.12
Browse files Browse the repository at this point in the history
Golang 1.21.12
  • Loading branch information
michaelkaplan13 authored Jul 5, 2024
2 parents 67f83b8 + f81deab commit 2b68ff2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 28 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set Go version
run: |
source ./scripts/versions.sh
echo GO_VERSION=$GO_VERSION >> $GITHUB_ENV
echo SUBNET_EVM_VERSION=$SUBNET_EVM_VERSION >> $GITHUB_ENV

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'

- name: Set subnet-evm version
run: |
source ./scripts/versions.sh
echo SUBNET_EVM_VERSION=$SUBNET_EVM_VERSION >> $GITHUB_ENV
- name: Checkout subnet-evm repository
uses: actions/checkout@v4
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@ jobs:
with:
submodules: recursive

- name: Set Go version
run: |
source ./scripts/versions.sh
echo GO_VERSION=$GO_VERSION >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'

- name: Run Lint
run: ./scripts/lint.sh --go-lint
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
path: awm-relayer
submodules: recursive

# The GO_VERSION must be set explicitly to be used in the Dockerfile.
- name: Set Go version
run: |
source ./awm-relayer/scripts/versions.sh
source ./scripts/versions.sh
echo GO_VERSION=$GO_VERSION >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'

- name: Set up arm64 cross compiler
run: |
Expand Down Expand Up @@ -70,8 +69,6 @@ jobs:
distribution: goreleaser
version: latest
args: release --clean
workdir: ./awm-relayer/
env:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO_VERSION: ${{ env.GO_VERSION }}
1 change: 0 additions & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: awm-relayer
submodules: recursive

- name: Run Snyk
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set Go version
run: |
source ./scripts/versions.sh
echo GO_VERSION=$GO_VERSION >> $GITHUB_ENV

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'

- name: Run Relayer Unit Tests
run: ./scripts/test.sh
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Setup

To start developing on AWM Relayer, you'll need Golang >= v1.21.7.
To start developing on AWM Relayer, you'll need Golang v1.21.12.

## Issues

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ava-labs/awm-relayer

go 1.21.11
go 1.21.12

require (
github.com/ava-labs/avalanche-network-runner v1.7.6
Expand Down

0 comments on commit 2b68ff2

Please sign in to comment.