diff --git a/.github/workflows/ci-build-release-lib.yml b/.github/workflows/ci-build-release-lib.yml index 18115701c..b7ef07fcd 100644 --- a/.github/workflows/ci-build-release-lib.yml +++ b/.github/workflows/ci-build-release-lib.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ubuntu-22.04, ubuntu-20.04] - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] container: image: wasmedge/wasmedge:ubuntu-build-clang @@ -40,28 +40,24 @@ jobs: curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugins wasi_crypto ldconfig - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Rustfmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy check run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings + cargo clippy -V + cargo clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Clippy check for async feature run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Build Async-Hello for Testing working-directory: examples/wasmedge-sys @@ -85,7 +81,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] container: image: fedora:latest @@ -103,28 +99,24 @@ jobs: curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugins wasi_crypto ldconfig - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Rustfmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy check run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings + cargo clippy -V + cargo clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Clippy check for async feature run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Build Async-Hello for Testing working-directory: examples/wasmedge-sys @@ -149,7 +141,7 @@ jobs: strategy: matrix: os: [macos-12, macos-13] - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] steps: - name: Checkout sources @@ -161,23 +153,19 @@ jobs: run: | curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugins wasi_crypto - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Run cargo fmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,ffi -- -D warnings - name: Test Rust Bindings run: | @@ -189,7 +177,7 @@ jobs: runs-on: windows-2022 strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] env: WASMEDGE_DIR: ${{ github.workspace }}\WasmEdge WASMEDGE_BUILD_DIR: ${{ github.workspace }}\WasmEdge\build @@ -234,26 +222,22 @@ jobs: cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release "-DCMAKE_SYSTEM_VERSION=$cmake_sys_version" -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL "-DLLVM_DIR=$llvm_dir" -DWASMEDGE_BUILD_PACKAGE="ZIP" . cmake --build build - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Rustfmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy run: | $vsPath = (vswhere -latest -property installationPath) Import-Module (Join-Path $vsPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll") Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments "-arch=x64 -host_arch=x64 -winsdk=10.0.19041.0" - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,ffi -- -D warnings - name: Test Rust Bindings run: | diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index d4dfd4662..e329078cc 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: os: [ubuntu-22.04, ubuntu-20.04] - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] container: image: wasmedge/wasmedge:ubuntu-build-clang @@ -53,28 +53,24 @@ jobs: cmake --install build ldconfig - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Rustfmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy check run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings + cargo clippy -V + cargo clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Clippy check for async feature run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Build Async-Hello for Testing working-directory: examples/wasmedge-sys @@ -96,7 +92,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] container: image: fedora:latest @@ -121,28 +117,24 @@ jobs: cmake --build build cmake --install build - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Rustfmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy check run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings + cargo clippy -V + cargo clippy --lib --examples --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Clippy check for async feature run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi -- -D warnings - name: Build Async-Hello for Testing working-directory: examples/wasmedge-sys @@ -173,7 +165,7 @@ jobs: strategy: matrix: os: [macos-12, macos-13] - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] steps: - name: Checkout sources @@ -201,23 +193,19 @@ jobs: cmake --build build cmake --install build - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Run cargo fmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy run: | - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,ffi -- -D warnings - name: Test Rust Bindings run: | @@ -228,7 +216,7 @@ jobs: runs-on: windows-2022 strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] env: WASMEDGE_DIR: ${{ github.workspace }}\WasmEdge WASMEDGE_BUILD_DIR: ${{ github.workspace }}\WasmEdge\build @@ -271,26 +259,22 @@ jobs: cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release "-DCMAKE_SYSTEM_VERSION=$cmake_sys_version" -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL "-DLLVM_DIR=$llvm_dir" -DWASMEDGE_BUILD_PACKAGE="ZIP" . cmake --build build - - name: Install Rust-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + toolchain: ${{ matrix.rust }} - name: Rustfmt - run: cargo +nightly fmt --all -- --check + run: cargo fmt --all -- --check - name: Clippy run: | $vsPath = (vswhere -latest -property installationPath) Import-Module (Join-Path $vsPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll") Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments "-arch=x64 -host_arch=x64 -winsdk=10.0.19041.0" - cargo +nightly clippy -V - cargo +nightly clippy --lib --examples --features aot,ffi -- -D warnings - - - name: Install Rust-stable - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} + cargo clippy -V + cargo clippy --lib --examples --features aot,ffi -- -D warnings - name: Test Rust Bindings run: | diff --git a/.github/workflows/publish-async-api-docs.yml b/.github/workflows/publish-async-api-docs.yml index f7cba6a52..718078d2c 100644 --- a/.github/workflows/publish-async-api-docs.yml +++ b/.github/workflows/publish-async-api-docs.yml @@ -36,12 +36,12 @@ 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-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable - name: Build Async API document run: | - RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc -p wasmedge-sdk --workspace --no-deps --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target + RUSTDOCFLAGS="--cfg docsrs" cargo doc -p wasmedge-sdk --workspace --no-deps --features aot,async,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target - name: Deploy Async API document if: github.ref == 'refs/heads/main' diff --git a/.github/workflows/release-async-wasi.yml b/.github/workflows/release-async-wasi.yml index 0b5cf51a5..9af0ac94d 100644 --- a/.github/workflows/release-async-wasi.yml +++ b/.github/workflows/release-async-wasi.yml @@ -19,10 +19,8 @@ jobs: with: fetch-depth: 0 - - name: Install Rust v1.75 + - name: Install Rust-stable uses: dtolnay/rust-toolchain@stable - with: - toolchain: 1.75 - name: Dry run cargo publish env: diff --git a/.github/workflows/release-wasmedge-macro.yml b/.github/workflows/release-wasmedge-macro.yml index a2ce15598..c8d36f381 100644 --- a/.github/workflows/release-wasmedge-macro.yml +++ b/.github/workflows/release-wasmedge-macro.yml @@ -19,10 +19,8 @@ jobs: with: fetch-depth: 0 - - name: Install Rust v1.78 + - name: Install Rust-stable uses: dtolnay/rust-toolchain@stable - with: - toolchain: 1.78 - name: Dry run cargo publish env: diff --git a/.github/workflows/release-wasmedge-sdk.yml b/.github/workflows/release-wasmedge-sdk.yml index e0e7b68b4..91a381eb8 100644 --- a/.github/workflows/release-wasmedge-sdk.yml +++ b/.github/workflows/release-wasmedge-sdk.yml @@ -36,8 +36,8 @@ 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-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable - name: Dry run cargo publish env: @@ -57,7 +57,7 @@ jobs: - name: Build API document run: | - RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc -p wasmedge-sdk --workspace --no-deps --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target + RUSTDOCFLAGS="--cfg docsrs" cargo 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' diff --git a/.github/workflows/release-wasmedge-sys.yml b/.github/workflows/release-wasmedge-sys.yml index 25eac8dc4..fbf370c73 100644 --- a/.github/workflows/release-wasmedge-sys.yml +++ b/.github/workflows/release-wasmedge-sys.yml @@ -36,8 +36,8 @@ 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-nightly - uses: dtolnay/rust-toolchain@nightly + - name: Install Rust-stable + uses: dtolnay/rust-toolchain@stable - name: Dry run cargo publish env: @@ -57,7 +57,7 @@ jobs: - name: Build API document run: | - RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc -p wasmedge-sys --workspace --no-deps --features aot,wasi_crypto,wasi_nn,wasmedge_process,ffi --target-dir=./target + RUSTDOCFLAGS="--cfg docsrs" cargo 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' diff --git a/.github/workflows/release-wasmedge-types.yml b/.github/workflows/release-wasmedge-types.yml index 8547f3ffb..6659af31c 100644 --- a/.github/workflows/release-wasmedge-types.yml +++ b/.github/workflows/release-wasmedge-types.yml @@ -19,10 +19,8 @@ jobs: with: fetch-depth: 0 - - name: Install Rust v1.78 + - name: Install Rust-stable uses: dtolnay/rust-toolchain@stable - with: - toolchain: 1.78 - name: Dry run cargo publish env: diff --git a/.github/workflows/rust-static-lib.yml b/.github/workflows/rust-static-lib.yml index 427d1c610..fd14ff887 100644 --- a/.github/workflows/rust-static-lib.yml +++ b/.github/workflows/rust-static-lib.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: os: [ubuntu-22.04] - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] container: image: wasmedge/wasmedge:ubuntu-build-clang diff --git a/.github/workflows/standalone.yml b/.github/workflows/standalone.yml index 33553492f..336e817c5 100644 --- a/.github/workflows/standalone.yml +++ b/.github/workflows/standalone.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] steps: - name: Checkout WasmEdge Rust SDK @@ -57,7 +57,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] steps: - name: Checkout WasmEdge Rust SDK @@ -92,7 +92,7 @@ jobs: strategy: matrix: os: [macos-12, macos-13] - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] steps: - name: Checkout sources @@ -121,7 +121,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.78, 1.77, 1.76] + rust: [1.83, 1.82, 1.81] container: image: fedora:latest