]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA: build hyper with nightly rustc
authorDaniel Stenberg <daniel@haxx.se>
Sat, 5 Mar 2022 22:17:56 +0000 (23:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 5 Mar 2022 22:47:18 +0000 (23:47 +0100)
Closes #8545

.github/workflows/linux-hyper.yml

index 4a02753b0b786159ebec93857f512990966ac45e..d35bdcb07aab95eba5e62bcefdae73a676f0e70d 100644 (file)
@@ -32,8 +32,11 @@ jobs:
         git clone --depth=1 https://github.com/hyperium/hyper.git;
         curl https://sh.rustup.rs -sSf | sh -s -- -y;
         source $HOME/.cargo/env;
-        cd $HOME/hyper;
-        RUSTFLAGS="--cfg hyper_unstable_ffi" cargo build --features client,http1,http2,ffi)
+        rustup toolchain install nightly;)
+      name: install rust
+
+    - run: (cd $HOME/hyper;
+        RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib)
       name: 'install hyper'
 
     - uses: actions/checkout@v2