Skip to content

Commit

Permalink
Release 1.5.0. (#207)
Browse files Browse the repository at this point in the history
* JSON: fix bugs and add unit tests. (#141)
* Add storage layout debug support for `EvmErc20.sol`. (#178)
* ERC-20: forbid using invalid NEP-141 AccountID for mapping. (#179)
* Add EIP-2930 support. (#181, #182)
* Migrate all workflows to self-hosted runners. (#185)
* Speed up the workflow using build caching. (#189)
* Use the new math API host functions. (#190)
* Fix `clippy::enum_variant_names` warning. (#192)
* Add different networks to the Makefile. (#193)
* Update the network status in the README. (#194)
* Remove the toolchain installation step in workflows. (#195)
* Run all tests for all networks in CI. (#196)
* Optimize for performance instead of code size. (#197)
* Parallelize the test suites. (#198)
* Add build-caching to the testing workflow. (#201)
* Refactor tests to use Signer. (#203)
* Add options to the bench profile. (#204)
* Remove a duplicate test. (#205)
* Add a sanity test for access list handling. (#206)
* Update nearcore to the latest branch.
* Add feature gates to the SDK's new host functions.

Co-authored-by: Ahmed Ali <ahmed@aurora.dev>
Co-authored-by: Dmitry Strokov <dmitry@aurora.dev>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: Kirill <kirill@aurora.dev>
Co-authored-by: Michael Birch <michael@aurora.dev>
  • Loading branch information
7 people authored Jul 30, 2021
1 parent d2f2e32 commit 65a1d11
Show file tree
Hide file tree
Showing 42 changed files with 2,041 additions and 1,376 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,46 @@ name: Builds
jobs:
release:
name: Release
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-25
override: true
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make release
- run: ls -lH release.wasm
- name: Upload the release.wasm artifact
- run: ls -lH mainnet-release.wasm
- name: Upload the mainnet-release.wasm artifact
uses: actions/upload-artifact@v2
with:
name: release.wasm
path: release.wasm
name: mainnet-release.wasm
path: mainnet-release.wasm
- name: Update the latest release
uses: svenstaro/upload-release-action@v2
with:
tag: latest
file: release.wasm
file: mainnet-release.wasm
overwrite: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update the latest tag
uses: EndBug/latest-tag@latest
debug:
name: Debug
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-25
override: true
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make debug
- run: ls -lH debug.wasm
- name: Upload the debug.wasm artifact
- run: ls -lH mainnet-debug.wasm
- name: Upload the mainnet-debug.wasm artifact
uses: actions/upload-artifact@v2
with:
name: debug.wasm
path: debug.wasm
name: mainnet-debug.wasm
path: mainnet-debug.wasm
- name: Update the latest release
uses: svenstaro/upload-release-action@v2
with:
tag: latest
file: debug.wasm
file: mainnet-debug.wasm
overwrite: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update the latest tag
Expand Down
36 changes: 8 additions & 28 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,29 @@ name: Lints
jobs:
fmt:
name: rustfmt
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-25
override: true
components: rustfmt
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-25
override: true
components: clippy
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make etc/eth-contracts/res/EvmErc20.bin
- name: Run Contract cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features --features=contract -- -D warnings
run: cargo clippy --no-default-features --features=contract -- -D warnings
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
run: cargo clippy

contracts:
name: eth-contracts
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,11 @@ name: Scheduled_Lints
jobs:
clippy:
name: Nightly_Clippy
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make etc/eth-contracts/res/EvmErc20.bin
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features --features=mainnet -- -D warnings
run: cargo clippy --no-default-features --features=mainnet -- -D warnings
53 changes: 22 additions & 31 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,36 @@ on: [push, pull_request]
name: Tests
jobs:
test:
name: Test suite
runs-on: ubuntu-latest
strategy:
matrix:
net: [main, test, beta]
name: Test suite (${{ matrix.net }}net)
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Cache Cargo artifacts
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-25
override: true
- run: make test-build
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --verbose --features meta-call
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache lookup for target dir
run: cache-util -restore -path target -key aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}
- run: make ${{ matrix.net }}net-test-build
- name: Run ${{ matrix.net }}net cargo test
run: cargo test --locked --verbose --features ${{ matrix.net }}net-test
- name: Caching target dir
run: cache-util -save -move -path target -key aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}
bully-build:
name: Bully build
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Install the toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-03-25
override: true
- run: make evm-bully=yes
- run: ls -lH release.wasm
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache lookup for target dir
run: cache-util -restore -path target -key aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}
- run: make mainnet-debug evm-bully=yes
- run: ls -lH mainnet-debug.wasm
- name: Cache target dir
run: cache-util -save -move -path target -key aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTC_WRAPPER: sccache
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ res/
etc/state-migration-test/target/

node_modules/*
artifacts/
cache
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.0] - 2021-07-30

## [1.4.3] - 2021-07-08

## [1.4.2] - 2021-06-25
Expand All @@ -21,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.0.0] - 2021-05-12

[1.5.0]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.3...1.5.0
[1.4.3]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.2...1.4.3
[1.4.2]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.1...1.4.2
[1.4.1]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.0...1.4.1
Expand Down
Loading

0 comments on commit 65a1d11

Please sign in to comment.