Skip to content

feat(target_chains/ethereum): add arbirum stylus sdk #17

feat(target_chains/ethereum): add arbirum stylus sdk

feat(target_chains/ethereum): add arbirum stylus sdk #17

name: stylus-gas-bench
# This workflow checks that the compiled wasm binary of every example contract
# can be deployed to Arbitrum Stylus.
permissions:
contents: read
on:
pull_request:
paths:
- target_chains/ethereum/sdk/stylus/**
push:
branches:
- main
paths:
- target_chains/ethereum/sdk/stylus/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
required:
name: Gas usage report
runs-on: ubuntu-latest
defaults:
run:
working-directory: target_chains/ethereum/sdk/stylus
steps:
- uses: actions/checkout@v4
- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-key: "gas-bench"
toolchain: nightly-2024-01-01
target: x86_64-unknown-linux-gnu
rustflags: ""
- name: Install cargo-stylus
run: cargo install [email protected]
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install wasm-opt
run: cargo install [email protected]
- name: Install solc
run: |
curl -LO https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux
sudo mv solc-static-linux /usr/bin/solc
sudo chmod a+x /usr/bin/solc
- uses: pnpm/action-setup@v4
name: Install pnpm
- name: Setup nitro node
run: ./scripts/nitro-testnode.sh -d -i
- name: run benches
run: ./scripts/bench.sh