Skip to content

Commit f63f10e

Browse files
authoredJan 21, 2025
Update WasmEdge version to 0.14.1 across all configurations and docs (#346)
* Update WasmEdge version to 0.14.1 across all configurations and docs * Revert Windows wasn_nn plugin URLs to v0.14.0

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed
 

‎.github/workflows/ci-build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Install WasmEdge
3737
run: |
38-
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.0
38+
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.1
3939
source $HOME/.wasmedge/env
4040
- name: Install dependencies
4141
run: |
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Install WasmEdge
7171
run: |
72-
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.0
72+
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.1
7373
source $HOME/.wasmedge/env
7474
7575
- name: Install Rust-stable
@@ -92,7 +92,7 @@ jobs:
9292
matrix:
9393
rust: [1.79]
9494
env:
95-
WASMEDGE_DIR: ${{ github.workspace }}\WasmEdge-0.14.0-Windows
95+
WASMEDGE_DIR: ${{ github.workspace }}\WasmEdge-0.14.1-Windows
9696
steps:
9797
- name: Display ENV
9898
run: |
@@ -104,8 +104,8 @@ jobs:
104104
- name: Download WasmEdge
105105
run: |
106106
$ProgressPreference = 'SilentlyContinue'
107-
Invoke-WebRequest -Uri "https://github.com/WasmEdge/WasmEdge/releases/download/0.14.0/WasmEdge-0.14.0-windows.zip" -OutFile "WasmEdge-0.14.0-windows.zip"
108-
Expand-Archive -LiteralPath "WasmEdge-0.14.0-windows.zip" -DestinationPath ${{ github.workspace }}
107+
Invoke-WebRequest -Uri "https://github.com/WasmEdge/WasmEdge/releases/download/0.14.1/WasmEdge-0.14.1-windows.zip" -OutFile "WasmEdge-0.14.1-windows.zip"
108+
Expand-Archive -LiteralPath "WasmEdge-0.14.1-windows.zip" -DestinationPath ${{ github.workspace }}
109109
tree /F ${{ github.workspace }}\WasmEdge
110110
111111
- name: Set up Windows 10 SDK

‎.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Install WasmEdge
4343
run: |
44-
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.0
44+
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.1
4545
source $HOME/.wasmedge/env
4646
- name: Install dependencies
4747
run: |
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Install WasmEdge
8989
run: |
90-
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.0
90+
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.1
9191
source $HOME/.wasmedge/env
9292
9393
- name: Install Rust-stable
@@ -119,7 +119,7 @@ jobs:
119119
matrix:
120120
rust: [1.79]
121121
env:
122-
WASMEDGE_DIR: ${{ github.workspace }}\WasmEdge-0.14.0-Windows
122+
WASMEDGE_DIR: ${{ github.workspace }}\WasmEdge-0.14.1-Windows
123123
steps:
124124
- name: Display ENV
125125
run: |
@@ -131,8 +131,8 @@ jobs:
131131
- name: Download WasmEdge
132132
run: |
133133
$ProgressPreference = 'SilentlyContinue'
134-
Invoke-WebRequest -Uri "https://github.com/WasmEdge/WasmEdge/releases/download/0.14.0/WasmEdge-0.14.0-windows.zip" -OutFile "WasmEdge-0.14.0-windows.zip"
135-
Expand-Archive -LiteralPath "WasmEdge-0.14.0-windows.zip" -DestinationPath ${{ github.workspace }}
134+
Invoke-WebRequest -Uri "https://github.com/WasmEdge/WasmEdge/releases/download/0.14.1/WasmEdge-0.14.1-windows.zip" -OutFile "WasmEdge-0.14.1-windows.zip"
135+
Expand-Archive -LiteralPath "WasmEdge-0.14.1-windows.zip" -DestinationPath ${{ github.workspace }}
136136
tree /F ${{ github.workspace }}\WasmEdge
137137
138138
- name: Set up Windows 10 SDK

‎Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ bins = ["/usr/bin/curl"]
137137
[package.metadata.packager.macos]
138138
minimum_system_version = "11.0"
139139
frameworks = [
140-
"./wasmedge/WasmEdge-0.14.0-Darwin/lib/libwasmedge.0.dylib",
141-
"./wasmedge/WasmEdge-0.14.0-Darwin/plugin/libwasmedgePluginWasiNN.dylib",
140+
"./wasmedge/WasmEdge-0.14.1-Darwin/lib/libwasmedge.0.dylib",
141+
"./wasmedge/WasmEdge-0.14.1-Darwin/plugin/libwasmedgePluginWasiNN.dylib",
142142
]
143143

144144

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ git clone https://github.com/moxin-org/moly.git
4141
Install the required WasmEdge WASM runtime (or use [`moly-runner`](#tip-use-moly-runner-for-easy-setup)):
4242
4343
```sh
44-
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.0
44+
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.1
4545
4646
source $HOME/.wasmedge/env
4747
```
@@ -58,7 +58,7 @@ cargo run --release
5858
Install the required WasmEdge WASM runtime (or use [`moly-runner`](#tip-use-moly-runner-for-easy-setup)):
5959
6060
```sh
61-
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.0
61+
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- --version=0.14.1
6262
6363
source $HOME/.wasmedge/env
6464
```

‎moly-runner/src/main.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const WASMEDGE_ROOT_DIR_NAME: &str = {
8282
".wasmedge"
8383
}
8484
#[cfg(windows)] {
85-
"WasmEdge-0.14.0-Windows"
85+
"WasmEdge-0.14.1-Windows"
8686
}
8787
};
8888

@@ -356,7 +356,7 @@ fn find_wasmedge_dylibs_in_dir<P: AsRef<Path>>(wasmedge_root_dir: P) -> Option<(
356356
#[cfg(any(target_os = "linux", target_os = "macos"))]
357357
fn install_wasmedge<P: AsRef<Path>>(install_path: P) -> Result<PathBuf, std::io::Error> {
358358
use std::process::Stdio;
359-
println!("Downloading WasmEdge 0.14.0 from GitHub; installing to {}", install_path.as_ref().display());
359+
println!("Downloading WasmEdge 0.14.1 from GitHub; installing to {}", install_path.as_ref().display());
360360
let temp_dir = std::env::temp_dir();
361361
let curl_script_cmd = Command::new("curl")
362362
.stdout(Stdio::piped())
@@ -371,7 +371,7 @@ fn install_wasmedge<P: AsRef<Path>>(install_path: P) -> Result<PathBuf, std::io:
371371
.stdin(Stdio::from(curl_script_cmd.stdout.expect("failed to pipe curl stdout into bash stdin")))
372372
.arg("-s")
373373
.arg("--")
374-
.arg("--version=0.14.0")
374+
.arg("--version=0.14.1")
375375
.arg(&format!("--path={}", install_path.as_ref().display()))
376376
// The default `/tmp/` dir used in `install_v2.sh` isn't always accessible to bundled apps.
377377
.arg(&format!("--tmpdir={}", temp_dir.display()));
@@ -423,18 +423,18 @@ fn install_wasmedge<P: AsRef<Path>>(install_path: P) -> Result<PathBuf, std::io:
423423
#[cfg(windows)]
424424
fn install_wasmedge<P: AsRef<Path>>(install_path_ref: P) -> Result<PathBuf, std::io::Error> {
425425
let install_path = install_path_ref.as_ref();
426-
println!("Downloading WasmEdge 0.14.0 from GitHub; installing to {}", install_path.display());
426+
println!("Downloading WasmEdge 0.14.1 from GitHub; installing to {}", install_path.display());
427427

428-
// Currently we hardcode the URL for the v0.14.0 release of WasmEdge for windows.
429-
const WASMEDGE_0_14_0_WINDOWS_URL: &'static str = "https://github.com/WasmEdge/WasmEdge/releases/download/0.14.0/WasmEdge-0.14.0-windows.zip";
428+
// Currently we hardcode the URL for the v0.14.1 release of WasmEdge for windows.
429+
const WASMEDGE_0_14_0_WINDOWS_URL: &'static str = "https://github.com/WasmEdge/WasmEdge/releases/download/0.14.1/WasmEdge-0.14.1-windows.zip";
430430
let (wasi_nn_plugin_url, wasi_nn_dir_name) = wasmedge_wasi_nn_plugin_url();
431431
println!(" --> Using WASI-NN plugin at: {wasi_nn_plugin_url}");
432432

433433
let install_wasmedge_ps1 = format!(
434434
r#"
435435
$ProgressPreference = 'SilentlyContinue' ## makes downloads much faster
436-
Invoke-WebRequest -Uri "{WASMEDGE_0_14_0_WINDOWS_URL}" -OutFile "$env:TEMP\WasmEdge-0.14.0-windows.zip"
437-
Expand-Archive -Force -Path "$env:TEMP\WasmEdge-0.14.0-windows.zip" -DestinationPath "{}"
436+
Invoke-WebRequest -Uri "{WASMEDGE_0_14_0_WINDOWS_URL}" -OutFile "$env:TEMP\WasmEdge-0.14.1-windows.zip"
437+
Expand-Archive -Force -Path "$env:TEMP\WasmEdge-0.14.1-windows.zip" -DestinationPath "{}"
438438
439439
Invoke-WebRequest -Uri "{wasi_nn_plugin_url}" -OutFile "$env:TEMP\{wasi_nn_dir_name}.zip"
440440
Expand-Archive -Force -Path "$env:TEMP\{wasi_nn_dir_name}.zip" -DestinationPath "$env:TEMP\{wasi_nn_dir_name}"
@@ -598,7 +598,7 @@ fn run_moly() -> std::io::Result<()> {
598598

599599

600600
/// Checks that the current CPU supports AVX512, or either SSE4.2 or SSE4a,
601-
/// at least one of which is required by the current builds of WasmEdge 0.14.0 on Windows.
601+
/// at least one of which is required by the current builds of WasmEdge 0.14.1 on Windows.
602602
///
603603
/// This only checks x86_64 platforms, and does nothing on other platforms.
604604
fn assert_cpu_features() {

‎packaging/before-packaging-command/src/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ fn before_packaging(host_os: &str) -> std::io::Result<()> {
163163
/// This function effectively runs the following shell commands:
164164
/// ```sh
165165
/// mkdir -p ./wasmedge \
166-
/// && curl -sfL --show-error https://github.com/WasmEdge/WasmEdge/releases/download/0.14.0/WasmEdge-0.14.0-darwin_arm64.tar.gz | bsdtar -xf- -C ./wasmedge \
167-
/// && mkdir -p ./wasmedge/WasmEdge-0.14.0-Darwin/plugin \
168-
/// && curl -sf --location --progress-bar --show-error https://github.com/WasmEdge/WasmEdge/releases/download/0.14.0/WasmEdge-plugin-wasi_nn-ggml-0.14.0-darwin_arm64.tar.gz | bsdtar -xf- -C ./wasmedge/WasmEdge-0.14.0-Darwin/plugin; \
166+
/// && curl -sfL --show-error https://github.com/WasmEdge/WasmEdge/releases/download/0.14.1/WasmEdge-0.14.1-darwin_arm64.tar.gz | bsdtar -xf- -C ./wasmedge \
167+
/// && mkdir -p ./wasmedge/WasmEdge-0.14.1-Darwin/plugin \
168+
/// && curl -sf --location --progress-bar --show-error https://github.com/WasmEdge/WasmEdge/releases/download/0.14.1/WasmEdge-plugin-wasi_nn-ggml-0.14.1-darwin_arm64.tar.gz | bsdtar -xf- -C ./wasmedge/WasmEdge-0.14.1-Darwin/plugin; \
169169
/// ```
170170
fn download_wasmedge_macos(version: &str) -> std::io::Result<()> {
171171
// Command 1: Create the destination directory.
@@ -214,7 +214,7 @@ fn download_wasmedge_macos(version: &str) -> std::io::Result<()> {
214214
}
215215

216216
// Command 3: Create the plugin destination directory.
217-
let plugin_dest_dir = dest_dir.join("WasmEdge-0.14.0-Darwin").join("plugin");
217+
let plugin_dest_dir = dest_dir.join("WasmEdge-0.14.1-Darwin").join("plugin");
218218
fs::create_dir_all(&plugin_dest_dir)?;
219219

220220
// Command 4: Download and extract the Wasi-NN plugin.

0 commit comments

Comments
 (0)
Please sign in to comment.