feat: rust insert-dylib with docs, CI, and release workflow #1
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build / Lint (macOS aarch64) | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Add target | |
| run: rustup target add aarch64-apple-darwin | |
| - name: Cache cargo artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Check compilation | |
| run: cargo check --all-targets --target aarch64-apple-darwin | |
| - name: Run clippy | |
| run: cargo clippy --all-targets --target aarch64-apple-darwin -- -D warnings | |
| - name: Run tests | |
| run: cargo test --target aarch64-apple-darwin |