Skip to content

Commit

Permalink
chore: CI script improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed May 18, 2023
1 parent d6b1399 commit a6e593f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
- run: cargo make build-contracts
- name: Run Contract cargo clippy
run: cargo make clippy
- name: Run cargo clippy
run: cargo clippy
udeps:
name: Udeps
runs-on: [self-hosted, heavy]
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ jobs:
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
15 changes: 12 additions & 3 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ args = [
"${CARGO_FEATURES_TEST}",
]

[tasks.bench-modexp]
[tasks.bench-modexp-test]
condition = { profiles = ["mainnet", "testnet", "custom"] }
category = "Test"
command = "${CARGO}"
Expand All @@ -353,12 +353,21 @@ dependencies = [
"build-test",
"test-contracts",
"test-workspace",
"bench-modexp",
]

[tasks.bench-modexp]
category = "Test"
dependencies = [
"build-test",
"bench-modexp-test",
]

[tasks.test]
category = "Test"
run_task = "test-flow"
dependencies = [
"test-flow",
"bench-modexp-test",
]

[tasks.default]
condition = { profiles = ["mainnet", "testnet", "localnet", "development", "custom"] }
Expand Down

0 comments on commit a6e593f

Please sign in to comment.