forked from janek/mostr
build(ci): allow disabling keyring features
This commit is contained in:
parent
1df75055df
commit
e8312959c3
2 changed files with 15 additions and 2 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
on: [push, pull_request, create]
|
on: [push, pull_request, create]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
env:
|
||||||
|
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true
|
||||||
|
CARGO_PROFILE_dev_OPT_LEVEL: 0
|
||||||
|
RUSTFLAGS: ""
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -11,7 +15,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
- run: cargo test
|
- run: cargo test --no-default-features
|
||||||
|
- name: Install libdbus on Ubuntu
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libdbus-1-dev
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -23,7 +23,7 @@ colog = "1.3"
|
||||||
colored = "2.1"
|
colored = "2.1"
|
||||||
rustyline = { git = "https://github.com/xeruf/rustyline", rev = "465b14d" }
|
rustyline = { git = "https://github.com/xeruf/rustyline", rev = "465b14d" }
|
||||||
# OS-Specific Abstractions
|
# OS-Specific Abstractions
|
||||||
keyring = { version = "3", features = ["apple-native", "windows-native", "linux-native-sync-persistent", "crypto-rust"] }
|
keyring = "3"
|
||||||
directories = "5.0"
|
directories = "5.0"
|
||||||
whoami = "1.5"
|
whoami = "1.5"
|
||||||
# slint = "1.8"
|
# slint = "1.8"
|
||||||
|
@ -38,3 +38,7 @@ nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "e82bc787bdd849
|
||||||
tokio = { version = "1.41", features = ["rt", "rt-multi-thread", "macros", "io-std"] }
|
tokio = { version = "1.41", features = ["rt", "rt-multi-thread", "macros", "io-std"] }
|
||||||
chrono-english = "0.1"
|
chrono-english = "0.1"
|
||||||
linefeed = "0.6"
|
linefeed = "0.6"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["persistence"]
|
||||||
|
persistence = ["keyring/apple-native", "keyring/windows-native", "keyring/linux-native-sync-persistent", "keyring/crypto-rust"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue