Skip to content

Commit 897e772

Browse files
committed
update wasi-sdk to wassi-sdk-19 (1/2)
1 parent 1fb9cfa commit 897e772

File tree

13 files changed

+24
-24
lines changed

13 files changed

+24
-24
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
submodules: recursive
1515
token: ${{secrets.GITHUB_TOKEN}}
1616

17-
- name: Cache wasi-sdk-17
18-
id: cache-wasi-sdk-17
17+
- name: Cache wasi-sdk-19
18+
id: cache-wasi-sdk-19
1919
uses: actions/cache@v3
2020
with:
21-
path: ./wasi-sdk-17.0
22-
key: ${{ runner.os }}-wasi-sdk-17
21+
path: ./wasi-sdk-19.0
22+
key: ${{ runner.os }}-wasi-sdk-19
2323

2424
- name: wasi-sdk Toolchain Setup
25-
if: steps.cache-wasi-sdk-17.outputs.cache-hit != 'true'
25+
if: steps.cache-wasi-sdk-19.outputs.cache-hit != 'true'
2626
run: |
27-
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-17/wasi-sdk-17.0-linux.tar.gz
28-
tar zxvf wasi-sdk-17.0-linux.tar.gz
27+
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
28+
tar zxvf wasi-sdk-19.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-17.0
39+
export WASI_SDK_PATH=$(pwd)/wasi-sdk-19.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libymfm"
3-
version = "0.14.0"
3+
version = "0.15.0"
44
authors = ["Hiromasa Tanaka <h1romas4@gmail.com>"]
55
edition = "2021"
66
rust-version = "1.66"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Options
6868

6969
```bash
7070
$ wasmer run libymfm-cli.wasm -- -h
71-
libymfm-cli 0.14.0
71+
libymfm-cli 0.15.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-17](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-17) - `wasi-sdk-17.0-linux.tar.gz` requires Ubuntu 22.04.
239+
Setup [wasi-sdk-19](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-19) - `wasi-sdk-19.0-linux.tar.gz` requires Ubuntu 22.04.
240240

241241
Setup enviroment values:
242242

243243
`.bashrc`
244244

245245
```bash
246-
export WASI_SDK_PATH=/home/hiromasa/devel/toolchain/wasi-sdk-17.0
246+
export WASI_SDK_PATH=/home/hiromasa/devel/toolchain/wasi-sdk-19.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-17.0
255+
/home/hiromasa/devel/toolchain/wasi-sdk-19.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 15.0.6 (https://github.com/llvm/llvm-project 088f33605d8a61ff519c580a71b1dd57d16a03f8)
261+
clang version 15.0.7
262262
Target: wasm32-unknown-wasi
263263
Thread model: posix
264-
InstalledDir: /home/hiromasa/devel/toolchain/wasi-sdk-17.0/bin
264+
InstalledDir: /home/hiromasa/devel/toolchain/wasi-sdk-19.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.14.0"
3+
version = "0.15.0"
44
authors = ["Hiromasa Tanaka <h1romas4@gmail.com>"]
55
description = "libymfm CLI"
66
edition = "2021"

examples/python/src/wasm/libymfm.wasm

1.31 KB
Binary file not shown.

public/index.abdc8b82.js renamed to public/index.1180fd9c.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.abdc8b82.js.map renamed to public/index.1180fd9c.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.abdc8b82.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.1180fd9c.js"></script> </body></html>

public/libymfm_bg.87ed2c38.wasm

893 KB
Binary file not shown.

public/libymfm_bg.c354a11c.wasm

-899 KB
Binary file not shown.

public/wgm_worker.a026c9cb.js renamed to public/wgm_worker.deccb325.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.a026c9cb.js.map renamed to public/wgm_worker.deccb325.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)