databento 0.46.0

Official Databento client library
Documentation
name: build
on:
  pull_request:
  push:

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-latest, ubuntu-latest, windows-latest]
    name: build (${{ matrix.os }})
    runs-on: ${{ matrix.os }}

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Set up Rust
        run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
      # Cargo setup
      - name: Set up Cargo cache
        uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
            target
          key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

      - name: Format
        run: scripts/format.sh
        shell: bash
      - name: Build
        run: scripts/build.sh
        shell: bash
      - name: Lint
        run: scripts/lint.sh
        shell: bash
      - name: Test
        run: scripts/test.sh
        shell: bash