chore: generate rust-sdk github action with build.rs #365
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
# ------------------------------------------------------------------- | |
# ------------------------------- WARNING --------------------------- | |
# ------------------------------------------------------------------- | |
# | |
# This file was automatically generated by gh-workflows using the | |
# gh-workflow-gen bin. You should add and commit this file to your | |
# git repository. **DO NOT EDIT THIS FILE BY HAND!** Any manual changes | |
# will be lost if the file is regenerated. | |
# | |
# To make modifications, update your `build.rs` configuration to adjust | |
# the workflow description as needed, then regenerate this file to apply | |
# those changes. | |
# | |
# ------------------------------------------------------------------- | |
# ----------------------------- END WARNING ------------------------- | |
# ------------------------------------------------------------------- | |
name: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
build: | |
name: Build and Test Rust SDK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- run: npm ci | |
- name: Setup Rust Toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy, rustfmt | |
- name: Cargo Build | |
run: cargo build --all-features --all-targets --verbose | |
- name: Cargo Test | |
run: cargo test --all-features --verbose | |
- name: Cargo Fmt | |
run: cargo fmt --check | |
- name: Cargo Clippy | |
run: cargo clippy --all-features --workspace -- -D warnings | |
- name: Cargo Doc | |
run: cargo doc --verbose |