Sovereign chain simulator adaptations #517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go build | |
on: | |
push: | |
branches: [ main, feat/*, rc/* ] | |
pull_request: | |
branches: [ main, feat/*, rc/* ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.20.7 | |
id: go | |
- name: Checkout mx-chain-go | |
uses: actions/checkout@v4 | |
with: | |
repository: 'multiversx/mx-chain-go' | |
ref: 'feat/chain-go-sdk' | |
path: 'mx-chain-go' | |
- name: Checkout mx-chain-simulator-go | |
uses: actions/checkout@v4 | |
with: | |
path: 'mx-chain-simulator-go' | |
- name: Run go mod tidy | |
run: go mod tidy | |
working-directory: mx-chain-simulator-go | |
- name: Get dependencies | |
run: | | |
cd mx-chain-simulator-go | |
go get -v -t -d ./... | |
if [ -f Gopkg.toml ]; then | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
- name: Build | |
run: | | |
cd mx-chain-simulator-go/cmd/chainsimulator | |
go build |