build: bump Rust and cargo-stylus versions #12
Workflow file for this run
This file contains 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: check-publish | |
# This workflow checks that the libraries can be published on crates.io. | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check-publish: | |
name: Check publish on crates.io | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up rust | |
uses: dtolnay/rust-toolchain@master | |
id: toolchain | |
with: | |
target: wasm32-unknown-unknown | |
components: rust-src | |
toolchain: nightly-2024-07-25 | |
- uses: Swatinem/rust-cache@v2 | |
- name: check motsu-proc | |
run: cargo publish -p motsu-proc --dry-run | |
- name: check motsu | |
run: cargo publish -p motsu --dry-run | |
- name: check openzeppelin-crypto | |
run: cargo publish -p openzeppelin-crypto --target wasm32-unknown-unknown --dry-run | |
# TODO: https://github.com/OpenZeppelin/rust-contracts-stylus/issues/291 | |
# - name: check openzeppelin-stylus | |
# run: cargo publish -p openzeppelin-stylus --target wasm32-unknown-unknown --dry-run |