Skip to content

Commit

Permalink
[CI] Recover some nightly rust
Browse files Browse the repository at this point in the history
Signed-off-by: csh <[email protected]>
  • Loading branch information
L-jasmine committed Dec 2, 2024
1 parent 53b83d1 commit 2b7714f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-wasmedge-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v ${{ inputs.wasmedge_version }} -p /usr/local
ldconfig
- name: Install Rust-stable
uses: dtolnay/rust-toolchain@stable
# must use nightly, because of the feature `doc_cfg`
- name: Install Rust-nightly
uses: dtolnay/rust-toolchain@nightly

- name: Dry run cargo publish
env:
Expand All @@ -57,7 +58,7 @@ jobs:
- name: Build API document
run: |
RUSTDOCFLAGS="--cfg docsrs" cargo doc -p wasmedge-sdk --workspace --no-deps --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc -p wasmedge-sdk --workspace --no-deps --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target
- name: Deploy API document
if: github.ref == 'refs/heads/main'
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-wasmedge-sys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v ${{ inputs.wasmedge_version }} -p /usr/local
ldconfig
- name: Install Rust-stable
uses: dtolnay/rust-toolchain@stable
# must use nightly, because of the feature `doc_cfg`
- name: Install Rust-nightly
uses: dtolnay/rust-toolchain@nightly

- name: Dry run cargo publish
env:
Expand All @@ -57,7 +58,7 @@ jobs:
- name: Build API document
run: |
RUSTDOCFLAGS="--cfg docsrs" cargo doc -p wasmedge-sys --workspace --no-deps --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc -p wasmedge-sys --workspace --no-deps --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target
- name: Deploy API document
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 2b7714f

Please sign in to comment.