ci: update workflow triggers to run on workflow changes and all merges to main #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: stylus-check-wasm | |
# This workflow checks that the compiled wasm binary of every example contract | |
# can be deployed to Arbitrum Stylus. | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/ci-stylus-check-wasm.yml | |
- target_chains/ethereum/sdk/stylus/** | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check-wasm: | |
name: Check WASM binary | |
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: | |
rustflags: "" | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install cargo-stylus | |
run: cargo install [email protected] | |
- name: Run wasm check | |
run: ./scripts/check-wasm.sh |