ci-stylus-nostd.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This workflow checks whether the library is able to run without the std
  2. # library. See `check.yml` for information about how the concurrency
  3. # cancellation and workflow triggering works.
  4. name: stylus-no-std
  5. permissions:
  6. contents: read
  7. on:
  8. pull_request:
  9. paths:
  10. - target_chains/ethereum/sdk/stylus/**
  11. push:
  12. branches:
  13. - main
  14. concurrency:
  15. group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
  16. cancel-in-progress: true
  17. env:
  18. CARGO_TERM_COLOR: always
  19. jobs:
  20. nostd:
  21. runs-on: ubuntu-latest
  22. name: ${{ matrix.target }}
  23. defaults:
  24. run:
  25. working-directory: target_chains/ethereum/sdk/stylus
  26. strategy:
  27. matrix:
  28. target: [wasm32-unknown-unknown]
  29. steps:
  30. - uses: actions/checkout@v4
  31. with:
  32. submodules: true
  33. - uses: actions-rust-lang/setup-rust-toolchain@v1
  34. with:
  35. cache-workspaces: "target_chains/ethereum/sdk/stylus -> target"
  36. - name: Add rust targets ${{ matrix.target }}
  37. run: rustup target add ${{ matrix.target }}
  38. - name: Cargo check
  39. run: cargo check --release --target ${{ matrix.target }} --no-default-features