feat(ci): create release builds after pushing tag (#783) #3763
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 | |
cache-util restore aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target | |
- name: Build contracts | |
run: cargo make build-contracts | |
- name: Test contracts | |
run: cargo make test-contracts | |
- name: Build mainnet test WASM | |
run: cargo make --profile mainnet build-test | |
- name: List mainnet WASM directory and root directory | |
run: ls -la target/wasm32-unknown-unknown/release && ls -la | |
- name: Test mainnet | |
run: cargo make --profile mainnet test-workspace | |
- name: Build testnet test WASM | |
run: cargo make --profile testnet build-test | |
- name: List testnet WASM directory and root directory | |
run: ls -la target/wasm32-unknown-unknown/release && ls -la | |
- name: Test testnet | |
run: cargo make --profile testnet test-workspace | |
- name: Save cache | |
run: | | |
cache-util save cargo_git cargo_registry yarn_cache | |
cache-util msave aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target | |
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 | |
cache-util restore aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target | |
- 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@generic@${{ hashFiles('**/Cargo.lock') }}:target | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 |