Skip to content

Commit

Permalink
chore(ci): check with cargo deny (#254)
Browse files Browse the repository at this point in the history
* chore: bump version to 0.8.1
  • Loading branch information
everpcpc authored Oct 10, 2023
1 parent fa46ca1 commit c0fb95e
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 45 deletions.
14 changes: 11 additions & 3 deletions .github/actions/check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,24 @@ runs:
run: |
cargo fmt --all -- --check
- name: Install Check Tools
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
cargo install cargo-quickinstall
cargo quickinstall cargo-machete
cargo quickinstall cargo-deny
- name: Machete
shell: bash
run: |
cargo install cargo-machete --force
cargo machete
- name: Audit dependencies
- name: Deny Check
shell: bash
run: |
cargo audit
cargo deny check
- name: Clippy
shell: bash
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/publish.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ on:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
environment:
name: crates.io
url: https://crates.io/crates/databend-driver
steps:
- uses: actions/checkout@v4
- name: Setup Cargo Release
run: |
curl -fsSLo /tmp/cargo-release.tar.gz https://github.com/crate-ci/cargo-release/releases/download/v0.24.12/cargo-release-v0.24.12-x86_64-unknown-linux-gnu.tar.gz
mkdir -p /tmp/cargo-release
tar -C /tmp/cargo-release -xzf /tmp/cargo-release.tar.gz
sudo mv /tmp/cargo-release/cargo-release /usr/local/bin
- name: Release to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo release publish --execute --no-confirm
build_linux:
needs: publish
name: build ${{ matrix.target }}
strategy:
matrix:
Expand Down Expand Up @@ -42,6 +62,7 @@ jobs:
gh release upload ${{ github.ref_name }} dist/bendsql-${{ matrix.target }}.tar.gz --clobber
build_other:
needs: publish
name: build ${{ matrix.target }}
strategy:
matrix:
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.8.0"
version = "0.8.1"
edition = "2021"
license = "Apache-2.0"
authors = ["Databend Authors <opensource@datafuselabs.com>"]
Expand All @@ -21,7 +21,7 @@ keywords = ["databend", "database"]
repository = "https://github.com/datafuselabs/bendsql"

[workspace.dependencies]
databend-client = { path = "core", version = "0.8.0" }
databend-driver = { path = "driver", version = "0.8.0" }
databend-driver-macros = { path = "macros", version = "0.8.0" }
databend-sql = { path = "sql", version = "0.8.0" }
databend-client = { path = "core", version = "0.8.1" }
databend-driver = { path = "driver", version = "0.8.1" }
databend-driver-macros = { path = "macros", version = "0.8.1" }
databend-sql = { path = "sql", version = "0.8.1" }
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@databend-driver/lib-darwin-arm64",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.8.0",
"version": "0.8.1",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@databend-driver/lib-darwin-x64",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.8.0",
"version": "0.8.1",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@databend-driver/lib-linux-x64-gnu",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.8.0",
"version": "0.8.1",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@databend-driver/lib-win32-x64-msvc",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.8.0",
"version": "0.8.1",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "databend-driver",
"author": "Databend Authors <opensource@datafuselabs.com>",
"version": "0.8.0",
"version": "0.8.1",
"license": "Apache-2.0",
"main": "index.js",
"types": "index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ serde = { version = "1.0", features = ["derive"] }
sqlformat = "0.2"
strum = "0.25"
strum_macros = "0.25"
terminal_size = "0.2"
terminal_size = "0.3"
tokio = { version = "1.28", features = [
"macros",
"rt",
Expand All @@ -36,7 +36,7 @@ tokio = { version = "1.28", features = [
"parking_lot",
] }
tokio-stream = "0.1"
toml = "0.7"
toml = "0.8"
unicode-segmentation = "1.10"
url = { version = "2.4", default-features = false }

Expand Down
32 changes: 32 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = [
#"RUSTSEC-0000-0000",
]

[licenses]
unlicensed = "warn"
allow = [
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"Unicode-DFS-2016",
"ISC",
"MPL-2.0",
"BSL-1.0",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
]

[bans]
multiple-versions = "allow"
wildcards = "warn"
highlight = "all"

[sources]
unknown-git = "deny"
4 changes: 2 additions & 2 deletions sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ databend-client = { workspace = true }

chrono = { version = "0.4", default-features = false }
glob = "0.3"
itertools = "0.10"
jsonb = { git = "https://github.com/datafuselabs/jsonb", rev = "3a3c6ef" }
itertools = "0.11"
jsonb = "0.2"
roaring = { version = "0.10.1", features = ["serde"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
Expand Down

0 comments on commit c0fb95e

Please sign in to comment.