Skip to content

Commit ae8e6fc

Browse files
TobTheRockTobias Waurick
authored and
Tobias Waurick
committed
ci: add openssl feature to job matrix
1 parent dd699de commit ae8e6fc

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/build_test.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
matrix:
1616
rust:
1717
- stable
18+
feature:
19+
- ring
20+
- openssl
1821
steps:
1922
- uses: actions/checkout@v2
2023
- uses: actions-rs/toolchain@v1
@@ -28,29 +31,31 @@ jobs:
2831
uses: actions-rs/cargo@v1
2932
with:
3033
command: check
34+
args: --no-default-features --features ${{ matrix.feature }}
3135

3236
- name: check (benches)
3337
uses: actions-rs/cargo@v1
3438
with:
3539
command: check
36-
args: --benches
40+
args: --benches --no-default-features --features ${{ matrix.feature }}
3741

3842
- name: check (tests)
3943
uses: actions-rs/cargo@v1
4044
with:
4145
command: check
42-
args: --tests
46+
args: --tests --no-default-features --features ${{ matrix.feature }}
4347

4448
- name: test
4549
uses: actions-rs/cargo@v1
4650
with:
4751
command: test
52+
args: --no-default-features --features ${{ matrix.feature }}
4853

4954
- name: clippy
5055
uses: actions-rs/cargo@v1
5156
with:
5257
command: clippy
53-
args: --all-targets --all-features -- -Dwarnings
58+
args: --all-targets --no-default-features --features ${{ matrix.feature }} -- -Dwarnings
5459

5560
# test packaging to avoid surprisis at release time
5661
- name: package
@@ -74,4 +79,4 @@ jobs:
7479
uses: actions-rs/cargo@v1
7580
with:
7681
command: build
77-
args: --target wasm32-unknown-unknown --features wasm-bindgen
82+
args: --target wasm32-unknown-unknown --features ring

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Currently two crypto libraries are supported:
2929
- Per default the OpenSSL library is locally compiled and then statically linked. The build process requires a C compiler, `perl` (and `perl-core`), and `make`. For further options see the [openssl crate documentation](https://docs.rs/openssl/0.10.55/openssl/).
3030
- Compilation to Wasm32 is [not yet supported](https://github.com/sfackler/rust-openssl/issues/1016)
3131

32-
32+
Both cannot be enabled at the same time, thus on conflict `sframe` fallsback to using `ring`.
3333
## License
3434
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
3535

0 commit comments

Comments
 (0)