Skip to content

sql types from database #1010

sql types from database

sql types from database #1010

Workflow file for this run

name: Rust CI
on: push
jobs:
clippy:
name: clippy
runs-on: ubuntu-latest
strategy:
matrix:
features:
- 32bit
- 64bit
- multithread
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: |
rustup install stable
rustup component add clippy
rustup default stable
- name: Run cargo clippy
run: cargo clippy --features ${{ matrix.features }} -- -D warnings
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: |
rustup install stable
rustup component add rustfmt
rustup default stable
- name: Run cargo fmt
run: cargo fmt -- --check
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
features:
- 32bit
- 64bit
- multithread
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: |
rustup install stable
rustup default stable
- name: Run cargo check
run: cargo check --features ${{ matrix.features }}
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
features:
- 32bit
- 64bit
- multithread
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: |
rustup install stable
rustup default stable
- name: Run cargo test
run: cargo test --features ${{ matrix.features }}