Rust: Add Herb Rust FFI Bindings #23
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: Rust | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| actions: read | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| - name: Set up Rust Nightly (for rustfmt) | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: rust | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: bundle install | |
| run: bundle install | |
| - name: Render Templates | |
| run: bundle exec rake templates | |
| - name: Compile Herb | |
| run: bundle exec rake make | |
| - name: Check Rust formatting | |
| run: make format-check | |
| working-directory: rust | |
| - name: Clippy | |
| run: make lint | |
| working-directory: rust | |
| - name: Build Rust | |
| run: make build | |
| working-directory: rust | |
| - name: Run Rust tests | |
| run: make test | |
| working-directory: rust |