Don't compile daemon and cli binaries on Windows

This commit is contained in:
Antoine Poinsot 2022-07-23 13:02:35 +02:00
parent 11cc4dc2e6
commit ad32977558
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304
2 changed files with 12 additions and 2 deletions

View File

@ -36,5 +36,9 @@ jobs:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- name: Test on Rust ${{ matrix.toolchain }}
run: cargo test --verbose
- name: Test on Rust ${{ matrix.toolchain }} (only Windows)
if: matrix.os == 'windows-latest'
run: cargo test --verbose --no-default-features
- name: Test on Rust ${{ matrix.toolchain }} (non Windows)
if: matrix.os != 'windows-latest'
run: cargo test --verbose --color always -- --nocapture

View File

@ -12,10 +12,16 @@ exclude = [".github/", ".cirrus.yml", "tests/", "test_data/", "contrib/", "pypr
[[bin]]
name = "minisafed"
path = "src/bin/daemon.rs"
required-features = ["jsonrpc_server"]
[[bin]]
name = "minisafe-cli"
path = "src/bin/cli.rs"
required-features = ["jsonrpc_server"]
[features]
default = ["jsonrpc_server"]
jsonrpc_server = []
[dependencies]
# For managing transactions (it re-exports the bitcoin crate)