Skip to content

Commit

Permalink
chore: extend clippy coverage (#984)
Browse files Browse the repository at this point in the history
## Description

The PR includes:

- extends clippy linter coverage of the crates
- adds new syntax for describing lints to check
- adds a new job to check that the XCC router is built

## Performance / NEAR gas cost considerations

Some insignificant gas changes.
  • Loading branch information
aleksuss authored Jan 8, 2025
1 parent 310eafc commit 0007cf7
Show file tree
Hide file tree
Showing 51 changed files with 1,398 additions and 2,853 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
- name: Run checks
run: cargo make check
- name: Run build XCC router
run: cargo make build-xcc-router
- uses: 8398a7/action-slack@v3
if: failure()
with:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,30 @@ jobs:
- name: Test ${{ matrix.profile }} bench-modexp
run: cargo make --profile ${{ matrix.profile }} bench-modexp

build_xcc_router:
name: Build XCC router
runs-on: github-hosted-heavy-runner
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@v4
- name: Cargo Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
etc/xcc-router/target/
key: cargo-build-xcc-router
- name: Install dependencies
run: cargo +stable make -V || cargo +stable install cargo-make
- name: Build
run: cargo make build-xcc-router

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
Loading

0 comments on commit 0007cf7

Please sign in to comment.