sql types from database #1010
This file contains 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: 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 }} |