-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from ava-labs/automated-release
Automated release
- Loading branch information
Showing
12 changed files
with
835 additions
and
293 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Build + test + release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*" | ||
pull_request: | ||
|
||
jobs: | ||
lint_test: | ||
name: Lint | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: latest | ||
working-directory: . | ||
args: --timeout 3m | ||
|
||
unit_test: | ||
name: Golang Unit Tests v${{ matrix.go }} (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go: ["1.17"] | ||
os: [ubuntu-20.04] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- run: go mod download | ||
shell: bash | ||
- run: ./scripts/build.sh ./build/subnetevm | ||
shell: bash | ||
- run: ./scripts/build_test.sh -race | ||
shell: bash | ||
- run: ./scripts/coverage.sh | ||
shell: bash | ||
|
||
e2e_test: | ||
name: e2e tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Run e2e tests | ||
shell: bash | ||
run: E2E=true scripts/run.sh 1.7.11 0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC | ||
|
||
release: | ||
needs: [lint_test, unit_test, e2e_test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,6 @@ bin/ | |
build/ | ||
|
||
cmd/simulator/.simulator/* | ||
|
||
# goreleaser | ||
dist/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# ref. https://goreleaser.com/customization/build/ | ||
builds: | ||
- id: subnet-evm | ||
main: ./plugin | ||
binary: subnet-evm | ||
flags: | ||
- -v | ||
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
- goos: linux | ||
goarch: 386 | ||
- goos: windows | ||
goarch: 386 | ||
- goos: freebsd | ||
goarch: 386 | ||
|
||
release: | ||
# Repo in which the release will be created. | ||
# Default is extracted from the origin remote URL or empty if its private hosted. | ||
github: | ||
owner: ava-labs | ||
name: subnet-evm |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
|
||
![Github Actions](https://github.com/ava-labs/subnet-evm/actions/workflows/lint-tests-release.yml/badge.svg) | ||
|
||
# Subnet EVM | ||
|
||
[Avalanche](https://docs.avax.network/learn/platform-overview) is a network composed of multiple blockchains. | ||
|
@@ -19,6 +22,7 @@ The Subnet EVM runs in a separate process from the main AvalancheGo process and | |
[v0.1.1-v0.1.2] [email protected] | ||
[v0.2.0] [email protected] | ||
[v0.2.1] [email protected] | ||
[v0.2.2] [email protected] | ||
``` | ||
|
||
## API | ||
|
@@ -50,8 +54,8 @@ To support these changes, there have been a number of changes to the SubnetEVM b | |
|
||
### Block Header | ||
|
||
* `BaseFee`: Added by EIP-1559 to represent the base fee of the block (present in Ethereum as of EIP-1559) | ||
* `BlockGasCost`: surcharge for producing a block faster than the target rate | ||
- `BaseFee`: Added by EIP-1559 to represent the base fee of the block (present in Ethereum as of EIP-1559) | ||
- `BlockGasCost`: surcharge for producing a block faster than the target rate | ||
|
||
|
||
## Run Local Network | ||
|
@@ -65,9 +69,9 @@ See [Create an EVM Subnet on Fuji Testnet](https://docs.avax.network/subnets/cre | |
|
||
## Customize a Subnet | ||
|
||
* [Genesis](https://docs.avax.network/subnets/customize-a-subnet#genesis) | ||
* [Precompile](https://docs.avax.network/subnets/customize-a-subnet#precompiles) | ||
* [Priority Regossip](https://docs.avax.network/subnets/customize-a-subnet#priority-regossip) | ||
- [Genesis](https://docs.avax.network/subnets/customize-a-subnet#genesis) | ||
- [Precompile](https://docs.avax.network/subnets/customize-a-subnet#precompiles) | ||
- [Priority Regossip](https://docs.avax.network/subnets/customize-a-subnet#priority-regossip) | ||
|
||
## Join the WAGMI Subnet Demo | ||
|
||
|
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
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
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
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
Oops, something went wrong.