chore: migrate to poly toolchain and regenerate bindings #236
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 Lint | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".pre-commit-config.yaml" | |
| - ".ai-rulez/**" | |
| - "**/*.rs" | |
| - "**/*.py" | |
| - "**/*.ts" | |
| - "**/*.rb" | |
| - "**/*.php" | |
| - "**/*.go" | |
| - "**/*.java" | |
| - "**/*.ex" | |
| - "**/*.exs" | |
| - "**/*.R" | |
| - "**/*.sh" | |
| - "**/*.toml" | |
| - "**/*.yml" | |
| - "**/*.yaml" | |
| - "**/*.json" | |
| - "alef.toml" | |
| - ".github/workflows/ci-lint.yaml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - ".pre-commit-config.yaml" | |
| - ".ai-rulez/**" | |
| - "**/*.rs" | |
| - "**/*.py" | |
| - "**/*.ts" | |
| - "**/*.rb" | |
| - "**/*.php" | |
| - "**/*.go" | |
| - "**/*.java" | |
| - "**/*.ex" | |
| - "**/*.exs" | |
| - "**/*.R" | |
| - "**/*.sh" | |
| - "**/*.toml" | |
| - "**/*.yml" | |
| - "**/*.yaml" | |
| - "**/*.json" | |
| - "alef.toml" | |
| - ".github/workflows/ci-lint.yaml" | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: ci-lint-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: "Validate" | |
| runs-on: ubuntu-24.04-arm | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Task | |
| uses: xberg-io/actions/install-task@v1 # v1 | |
| - name: Setup Rust | |
| uses: xberg-io/actions/setup-rust@v1 # v1 | |
| with: | |
| components: rustfmt, clippy, llvm-tools-preview | |
| - name: Setup Python | |
| uses: xberg-io/actions/setup-python-env@v1 # v1 | |
| with: | |
| python-version: "3.13" | |
| - name: Setup Node Workspace | |
| uses: xberg-io/actions/setup-node-workspace@v1 # v1 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26.0" | |
| cache-dependency-path: packages/go/go.sum | |
| - name: Install golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| install-only: true | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: "25" | |
| - name: Setup Elixir | |
| uses: xberg-io/actions/setup-elixir@v1 # v1 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.4" | |
| bundler-cache: false | |
| - name: Setup PHP | |
| uses: xberg-io/actions/setup-php@v1 # v1 | |
| - name: Setup R | |
| uses: xberg-io/actions/setup-r@v1 # v1 | |
| with: | |
| install-deps-script: scripts/ci/r/install-deps.sh | |
| - name: Install C/C++ tools | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends cppcheck clang-format | |
| - name: Install Alef | |
| uses: xberg-io/actions/install-alef@v1 | |
| - name: Install All Binding Dependencies | |
| run: alef setup | |
| shell: bash | |
| - name: Run Lint Checks | |
| run: task lint:check | |
| shell: bash | |
| - name: Check Code Formatting | |
| run: task format:check | |
| shell: bash | |
| - name: Install poly | |
| uses: Goldziher/polylint@v0 | |
| - name: Check formatting | |
| run: poly fmt --check . | |
| - name: Lint | |
| run: poly lint . | |
| - name: Install Python README Dependencies | |
| run: pip install pyyaml jinja2 | |
| shell: bash | |
| - name: Install rumdl | |
| run: pip install 'rumdl==0.1.95' | |
| shell: bash | |
| - name: Validate READMEs | |
| run: task readme:check | |
| shell: bash |