mirror of
https://github.com/agersant/polaris
synced 2024-11-10 02:04:13 +00:00
Make sqlite bundling optional (#110)
* Manually specify libsqlite version * Make sqlite bundling optional * Skip tests on windows without bundled sqlite
This commit is contained in:
parent
454d73c754
commit
866d82a16c
2 changed files with 10 additions and 3 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -10,10 +10,16 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
features: [--all-features, --features default]
|
||||
features: [--all-features, --features default, --features "service-rocket" --no-default-features]
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
features: --features "service-rocket" --no-default-features
|
||||
|
||||
steps:
|
||||
- name: Install libsqlite3-dev
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
run: sudo apt-get update && sudo apt-get install libsqlite3-dev
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
|
|
|
@ -5,9 +5,10 @@ authors = ["Antoine Gersant <antoine.gersant@lesforges.org>"]
|
|||
edition = "2018"
|
||||
|
||||
[features]
|
||||
default = ["service-rocket"]
|
||||
default = ["service-rocket", "bundle-sqlite"]
|
||||
ui = ["uuid", "winapi"]
|
||||
service-rocket = ["rocket", "rocket_contrib"]
|
||||
bundle-sqlite = ["libsqlite3-sys"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.35"
|
||||
|
@ -17,7 +18,7 @@ crossbeam-channel = "0.5"
|
|||
diesel_migrations = { version = "1.4", features = ["sqlite"] }
|
||||
getopts = "0.2.15"
|
||||
id3 = "0.5.1"
|
||||
libsqlite3-sys = { version = "*", features = ["bundled", "bundled-windows"] }
|
||||
libsqlite3-sys = { version = "0.18", features = ["bundled", "bundled-windows"], optional = true }
|
||||
rustfm-scrobble = "^1"
|
||||
lewton = "0.10.1"
|
||||
log = "0.4.5"
|
||||
|
|
Loading…
Reference in a new issue