Skip to content

Commit 5c93ed6

Browse files
committed
wasi-sdk-17
1 parent e313fe0 commit 5c93ed6

File tree

13 files changed

+22
-22
lines changed

13 files changed

+22
-22
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
id: cache-wasi-sdk-16
1919
uses: actions/cache@v3
2020
with:
21-
path: ./wasi-sdk-16.0
21+
path: ./wasi-sdk-17.0
2222
key: ${{ runner.os }}-wasi-sdk-16
2323

2424
- name: wasi-sdk Toolchain Setup
2525
if: steps.cache-wasi-sdk-16.outputs.cache-hit != 'true'
2626
run: |
27-
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-16/wasi-sdk-16.0-linux.tar.gz
28-
tar zxvf wasi-sdk-16.0-linux.tar.gz
27+
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-16/wasi-sdk-17.0-linux.tar.gz
28+
tar zxvf wasi-sdk-17.0-linux.tar.gz
2929
3030
- name: Rust Toolchain Setup
3131
run: |
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Build libymfm
3838
run: |
39-
export WASI_SDK_PATH=$(pwd)/wasi-sdk-16.0
39+
export WASI_SDK_PATH=$(pwd)/wasi-sdk-17.0
4040
export CARGO_TARGET_WASM32_WASI_LINKER=${WASI_SDK_PATH}/bin/lld
4141
export CARGO_TARGET_WASM32_WASI_RUSTFLAGS="-L ${WASI_SDK_PATH}/share/wasi-sysroot/lib/wasm32-wasi"
4242
(mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/wasi.cmake .. && make -j4)

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "libymfm"
3-
version = "0.13.0"
3+
version = "0.14.0"
44
authors = ["Hiromasa Tanaka <h1romas4@gmail.com>"]
55
edition = "2021"
6-
rust-version = "1.61"
6+
rust-version = "1.66"
77
build = "build.rs"
88
description = "WebAssembly build of the ymfm Yamaha FM sound cores library"
99
repository = "https://github.com/h1romas4/libymfm.wasm"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ Source code:
6262
## WASI Commnad Line Interface
6363

6464
- Install [Wasmer](https://wasmer.io/) runtime
65-
- Download [libymfm-cli.wasm](https://github.com/h1romas4/libymfm.wasm/releases/tag/v0.13.0) from pre-build release
65+
- Download [libymfm-cli.wasm](https://github.com/h1romas4/libymfm.wasm/releases/tag/v0.14.0) from pre-build release
6666

6767
Options
6868

6969
```bash
7070
$ wasmer run libymfm-cli.wasm -- -h
71-
libymfm-cli 0.13.0
71+
libymfm-cli 0.14.0
7272
Hiromasa Tanaka <h1romas4@gmail.com>
7373
libymfm CLI
7474

@@ -236,14 +236,14 @@ rustup target add wasm32-wasi
236236

237237
### Setup wasi-sdk
238238

239-
Setup [wasi-sdk-16](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-16)
239+
Setup [wasi-sdk-17](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-17)
240240

241241
Setup enviroment values:
242242

243243
`.bashrc`
244244

245245
```bash
246-
export WASI_SDK_PATH=/home/hiromasa/devel/toolchain/wasi-sdk-16.0
246+
export WASI_SDK_PATH=/home/hiromasa/devel/toolchain/wasi-sdk-17.0
247247
export CARGO_TARGET_WASM32_WASI_LINKER=${WASI_SDK_PATH}/bin/lld
248248
export CARGO_TARGET_WASM32_WASI_RUSTFLAGS="-L ${WASI_SDK_PATH}/share/wasi-sysroot/lib/wasm32-wasi"
249249
```
@@ -252,16 +252,16 @@ Verify:
252252

253253
```bash
254254
$ echo ${WASI_SDK_PATH}
255-
/home/hiromasa/devel/toolchain/wasi-sdk-16.0
255+
/home/hiromasa/devel/toolchain/wasi-sdk-17.0
256256
$ ls -alF ${WASI_SDK_PATH}
257257
drwxr-xr-x 2 hiromasa hiromasa 4096 12月 3 2020 bin/
258258
drwxr-xr-x 3 hiromasa hiromasa 4096 12月 3 2020 lib/
259259
drwxr-xr-x 6 hiromasa hiromasa 4096 12月 3 2020 share/
260260
$ ${WASI_SDK_PATH}/bin/clang -v
261-
clang version 14.0.4 (https://github.com/llvm/llvm-project 29f1039a7285a5c3a9c353d054140bf2556d4c4d)
261+
clang version 15.0.6 (https://github.com/llvm/llvm-project 088f33605d8a61ff519c580a71b1dd57d16a03f8)
262262
Target: wasm32-unknown-wasi
263263
Thread model: posix
264-
InstalledDir: /home/hiromasa/devel/toolchain/wasi-sdk-15.0/bin
264+
InstalledDir: /home/hiromasa/devel/toolchain/wasi-sdk-17.0/bin
265265
```
266266

267267
### Clone source

examples/libymfm-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libymfm-cli"
3-
version = "0.13.0"
3+
version = "0.14.0"
44
authors = ["Hiromasa Tanaka <h1romas4@gmail.com>"]
55
description = "libymfm CLI"
66
edition = "2021"

examples/python/src/wasm/libymfm.wasm

-7.18 KB
Binary file not shown.

public/index.f7f8d9a2.js renamed to public/index.abdc8b82.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/index.f7f8d9a2.js.map renamed to public/index.abdc8b82.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@h1romas4"><meta name="twitter:creator" content="@h1romas4"><meta name="twitter:title" content="WebAssembly VGM Player"><meta name="twitter:description" content="Retro synthesizer on the Web browser using WebAssembly"><meta name="twitter:image" content="https://chipstream.netlify.app/images/ogp.png"><meta property="og:title" content="WebAssembly VGM Player"><meta property="og:url" content="https://chipstream.netlify.app/"><meta property="og:image" content="https://chipstream.netlify.app/images/ogp.png"><meta property="og:description" content="Retro synthesizer on the Web browser using WebAssembly"><link rel="stylesheet" href="/index.85a8807b.css"><title>WebAssembly VGM Player</title></head><body> <div> <div id="link"><a target="_blank" href="https://github.com/h1romas4/libymfm.wasm">GitHub Repos</a></div> <canvas id="screen"></canvas> </div> <script type="module" src="/index.f7f8d9a2.js"></script> </body></html>
1+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@h1romas4"><meta name="twitter:creator" content="@h1romas4"><meta name="twitter:title" content="WebAssembly VGM Player"><meta name="twitter:description" content="Retro synthesizer on the Web browser using WebAssembly"><meta name="twitter:image" content="https://chipstream.netlify.app/images/ogp.png"><meta property="og:title" content="WebAssembly VGM Player"><meta property="og:url" content="https://chipstream.netlify.app/"><meta property="og:image" content="https://chipstream.netlify.app/images/ogp.png"><meta property="og:description" content="Retro synthesizer on the Web browser using WebAssembly"><link rel="stylesheet" href="/index.85a8807b.css"><title>WebAssembly VGM Player</title></head><body> <div> <div id="link"><a target="_blank" href="https://github.com/h1romas4/libymfm.wasm">GitHub Repos</a></div> <canvas id="screen"></canvas> </div> <script type="module" src="/index.abdc8b82.js"></script> </body></html>

public/libymfm_bg.05384e63.wasm

-893 KB
Binary file not shown.

public/libymfm_bg.c354a11c.wasm

899 KB
Binary file not shown.

public/wgm_worker.c0f4b33b.js renamed to public/wgm_worker.a026c9cb.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/wgm_worker.c0f4b33b.js.map renamed to public/wgm_worker.a026c9cb.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)