Add callback-based block creation API #169
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: Lint | |
| on: | |
| pull_request: | |
| branches: ["master"] | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Cache cargo | |
| uses: ./.github/actions/cargo-cache | |
| with: | |
| profile: debug | |
| - name: Install protobuf compiler | |
| uses: ./.github/actions/setup-protoc | |
| - name: Run clippy | |
| run: cargo clippy -- -D warnings | |
| c: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Run cppcheck | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y cppcheck | |
| FILES=$(find . -path ./target -prune -o \( -name '*.c' -o -name '*.h' \) -print) | |
| if [ -n "$FILES" ]; then | |
| echo "$FILES" | xargs cppcheck --error-exitcode=1 --enable=warning,style,performance,portability | |
| fi | |
| shell: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Run shellcheck | |
| run: | | |
| FILES=$(find . -path ./target -prune -o -name '*.sh' -print) | |
| if [ -n "$FILES" ]; then | |
| echo "$FILES" | xargs shellcheck | |
| fi |