Afilios/nit 3998 enable erc 20 and erc 721 examples #867
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: Smoke Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- ci-testing | |
jobs: | |
setup-cargo-stylus: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install stable | |
uses: dtolnay/[email protected] | |
- name: Get latest cargo-stylus version | |
id: get-version | |
shell: bash | |
run: | | |
version=$(cargo info cargo-stylus | grep 'version:' | awk 'NR==1 {print $2; exit}') | |
echo "version=$version" >> "$GITHUB_OUTPUT" | |
- name: Cache cargo stylus | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
key: cargo-stylus-${{ steps.get-version.outputs.version }} | |
path: | | |
~/.cargo/bin/cargo-stylus | |
- name: Install cargo-stylus | |
if: steps.cache.outputs.cache-hit != 'true' | |
shell: bash | |
run: | | |
RUSTFLAGS="-C link-args=-rdynamic" cargo install cargo-stylus | |
- name: Archive cargo-stylus binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cargo-stylus-binary | |
path: ~/.cargo/bin/cargo-stylus | |
retention-days: 1 # Keep artifact for 1 day | |
smoke-test: | |
runs-on: ubuntu-latest | |
name: smoke-test (${{ matrix.toolchain }}) | |
needs: setup-cargo-stylus | |
strategy: | |
matrix: | |
toolchain: [1.88.0, nightly-2025-06-26] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Install ${{ matrix.toolchain }} | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
targets: wasm32-unknown-unknown | |
- name: Download cargo-stylus binary | |
uses: actions/download-artifact@v4 | |
with: | |
name: cargo-stylus-binary | |
path: ~/.cargo/bin | |
- name: Make cargo-stylus executable | |
shell: bash | |
run: chmod +x ~/.cargo/bin/cargo-stylus | |
- uses: OffchainLabs/actions/run-nitro-test-node@main | |
with: | |
nitro-testnode-ref: release | |
no-token-bridge: true | |
# no-simple must be false for now as our nitro testnode branch doesn't have that option | |
no-simple: false | |
- name: Smoke Test Deployment | |
run: ./ci/smoke_test.sh |