feat: mirroring erc-20 contracts #3970
Workflow file for this run
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
--- | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
name: Tests | |
jobs: | |
test: | |
name: Test suite (mainnet, testnet) | |
runs-on: [self-hosted, heavy] | |
steps: | |
- name: Potential broken submodules fix | |
run: | | |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : | |
- name: Clone the repository | |
uses: actions/checkout@v3 | |
- name: Restore cache | |
run: cache-util restore cargo_git cargo_registry yarn_cache rocksdb:/root/rocksdb | |
- name: Preparing rocksdb library | |
run: scripts/ci/build_rocksdb.sh | |
- name: Test mainnet | |
run: cargo make --profile mainnet test-flow | |
- name: Test testnet | |
run: cargo make --profile testnet test-flow | |
- name: Save cache | |
run: cache-util save cargo_git cargo_registry yarn_cache | |
test_silo: | |
name: Test Silo suite (mainnet-silo, testnet-silo) | |
runs-on: [ self-hosted, heavy ] | |
steps: | |
- name: Potential broken submodules fix | |
run: | | |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : | |
- name: Clone the repository | |
uses: actions/checkout@v3 | |
- name: Restore cache | |
run: cache-util restore cargo_git cargo_registry yarn_cache rocksdb:/root/rocksdb | |
- name: Preparing rocksdb library | |
run: scripts/ci/build_rocksdb.sh | |
- name: Test mainnet | |
run: | | |
cargo make --profile mainnet build-test | |
cargo make --profile mainnet-silo test-flow | |
- name: Test testnet | |
run: | | |
cargo make --profile testnet build-test | |
cargo make --profile testnet-silo test-flow | |
- name: Save cache | |
run: cache-util save cargo_git cargo_registry yarn_cache | |
test_modexp: | |
name: Test modexp suite (mainnet, testnet) | |
runs-on: [ self-hosted, heavy ] | |
steps: | |
- name: Potential broken submodules fix | |
run: | | |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : | |
- name: Clone the repository | |
uses: actions/checkout@v3 | |
- name: Restore cache | |
run: | | |
cache-util restore cargo_git cargo_registry yarn_cache rocksdb:/root/rocksdb | |
cache-util restore aurora-engine-target@modexp@${{ hashFiles('**/Cargo.lock') }}:target | |
- name: Preparing rocksdb library | |
run: scripts/ci/build_rocksdb.sh | |
- name: Test mainnet bench-modexp | |
run: cargo make --profile mainnet bench-modexp | |
- name: Test testnet bench-modexp | |
run: cargo make --profile testnet bench-modexp | |
- name: Save cache | |
run: | | |
cache-util save cargo_git cargo_registry yarn_cache | |
cache-util msave aurora-engine-target@modexp@${{ hashFiles('**/Cargo.lock') }}:target | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
ROCKSDB_INCLUDE_DIR: /root/rocksdb/include | |
ROCKSDB_LIB_DIR: /root/rocksdb/lib | |
ROCKSDB_STATIC: 1 |