feature - implement core scalar functions and operators (#32) #53
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
| # InQL CI — Incan library package | |
| # | |
| # Builds the Incan compiler from source in CI, then runs the InQL package | |
| # checks against that local binary. Keeping this workflow self-contained avoids | |
| # a hard dependency on a remote composite action path staying in sync. | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| INCAN_REF: release/v0.3 | |
| RUST_BACKTRACE: 1 | |
| INCAN_NO_BANNER: 1 | |
| jobs: | |
| inql: | |
| name: InQL (build + test) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Check out InQL | |
| uses: actions/checkout@v4 | |
| - name: Check out Incan | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: dannys-code-corner/incan | |
| ref: ${{ env.INCAN_REF }} | |
| path: incan | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Incan build artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: incan -> target | |
| - name: Build Incan compiler | |
| working-directory: incan | |
| run: cargo build --locked --bin incan | |
| - name: Expose local Incan binary on PATH | |
| run: echo "$GITHUB_WORKSPACE/incan/target/debug" >> "$GITHUB_PATH" | |
| - name: Show toolchain | |
| run: | | |
| incan --version | |
| rustc --version | |
| - name: Format check (package .incn) | |
| run: make fmt-check | |
| - name: Test style check | |
| run: make test-style | |
| - name: Function registry metadata check | |
| run: make registry-metadata | |
| - name: Build library | |
| run: make build | |
| - name: Run tests | |
| run: make test | |
| - name: Pub consumer smoke check | |
| run: make smoke-consumer |