ci-stylus-check-wasm.yml 952 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: stylus-check-wasm
  2. # This workflow checks that the compiled wasm binary of every example contract
  3. # can be deployed to Arbitrum Stylus.
  4. on:
  5. pull_request:
  6. paths:
  7. - target_chains/ethereum/sdk/stylus/**
  8. push:
  9. branches:
  10. - main
  11. permissions:
  12. contents: read
  13. concurrency:
  14. group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
  15. cancel-in-progress: true
  16. env:
  17. CARGO_TERM_COLOR: always
  18. jobs:
  19. check-wasm:
  20. name: Check WASM binary
  21. runs-on: ubuntu-latest
  22. defaults:
  23. run:
  24. working-directory: target_chains/ethereum/sdk/stylus
  25. steps:
  26. - uses: actions/checkout@v4
  27. - uses: actions-rust-lang/setup-rust-toolchain@v1
  28. - name: Install Foundry
  29. uses: foundry-rs/foundry-toolchain@v1
  30. with:
  31. version: nightly
  32. - name: Install cargo-stylus
  33. run: cargo install cargo-stylus@0.5.8
  34. - name: Run wasm check
  35. run: ./scripts/check-wasm.sh