From 1bc1582cede99cfac44189e3b1158b7447fb7fd7 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Mon, 19 Sep 2022 04:41:39 +0000 Subject: [PATCH] Add new build task for CI --- .github/workflows/CI.yml | 9 +++++++++ Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9b890ad..bf83fa8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -107,6 +107,15 @@ jobs: run: cargo build --features server,db_sqlite -vv - name: Run tests run: cargo test --features server,db_sqlite --verbose -- --show-output + build-db-all: + runs-on: ubuntu-latest + steps: + - name: Check Out + uses: actions/checkout@v2 + - name: Build + run: cargo build --features db_all -vv + - name: Run tests + run: cargo test --features db_all --verbose -- --show-output build-all: runs-on: ubuntu-latest steps: diff --git a/Cargo.toml b/Cargo.toml index ab16604..8cc26bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ cmake = { version = "0.1", optional = true } [features] all = ["db", "db_sqlite", "exif", "ugoira", "server"] avdict = ["bindgen", "cmake", "flagset"] -db = ["async-trait", "anyhow", "bytes"] +db = ["anyhow", "async-trait", "bytes"] db_all = ["db", "db_sqlite"] db_sqlite = ["rusqlite"] exif = ["bindgen", "c_fixed_string", "cmake", "link-cplusplus", "utf16string"]