Skip to content

Commit

Permalink
Merge pull request #10 from BolarityNetwork/main-develop
Browse files Browse the repository at this point in the history
Integrate HybridVM to support interoperation between WASM and EVM contracts
  • Loading branch information
Acaishiba authored Sep 23, 2024
2 parents fd820c4 + 720ee46 commit 15d2d1b
Show file tree
Hide file tree
Showing 46 changed files with 16,725 additions and 276 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Rust

on:
push:
branches:
- 'main'
- 'main-develop'
pull_request:
branches:
- 'main'
- 'main-develop'

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Free up space on runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Rust Setup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy

- name: Install smove
run: cargo install --git https://github.com/eigerco/smove

- name: Install protoc
run: |
sudo apt-get install -y protobuf-compiler
protoc --version
- uses: actions/checkout@v3

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: fmt
args: --all --check

- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true

- name: Add rust-src
run: |
rustup component add rust-src
- name: Cargo Clean
run: cargo clean

- name: Build
run: cargo check --release

- name: Run tests
run: cargo test --release --locked --verbose --all
17 changes: 2 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,10 @@
# These are backup files generated by rustfmt
**/*.rs.bk

.nvim/

.DS_Store
node_modules/
package-lock.json

# direnv files
.envrc
.direnv

node_modules

node_modules
chain-data
deploy/testnet/config.env
deploy/testnet/chainspec.json
testenv

blockscout/services/blockscout-db-data
blockscout/services/logs
blockscout/services/redis-data
blockscout/services/stats-db-data
Loading

0 comments on commit 15d2d1b

Please sign in to comment.