chore(ci): test FFI on CI using nightly
Now that FFI is opt-in using cargo's --crate-type, nightly needs to be used on CI: this flag is still unstable and requires a nightly to enable -Z unstable options.
This commit is contained in:
committed by
Sean McArthur
parent
1c6637060e
commit
bd591f43fd
6
.github/workflows/CI.yml
vendored
6
.github/workflows/CI.yml
vendored
@@ -157,7 +157,7 @@ jobs:
|
|||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Install cbindgen
|
- name: Install cbindgen
|
||||||
@@ -171,8 +171,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: --cfg hyper_unstable_ffi
|
RUSTFLAGS: --cfg hyper_unstable_ffi
|
||||||
with:
|
with:
|
||||||
command: build
|
command: rustc
|
||||||
args: --features client,http1,http2,ffi
|
args: --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
|
||||||
|
|
||||||
- name: Make Examples
|
- name: Make Examples
|
||||||
run: cd capi/examples && make client
|
run: cd capi/examples && make client
|
||||||
|
|||||||
Reference in New Issue
Block a user