Skip to content

Commit

Permalink
ci: wasm32-wasi target rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed May 10, 2024
1 parent c505d04 commit 921ef42
Show file tree
Hide file tree
Showing 5 changed files with 1,063 additions and 1,124 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
settings:
- host: macos-14
- host: macos-latest
target: x86_64-apple-darwin
setup: |
brew install meson llvm
Expand Down Expand Up @@ -136,15 +136,15 @@ jobs:
apk add --update --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing --no-cache aom-dev perl meson &&
yarn workspace @napi-rs/image build --target aarch64-unknown-linux-musl --features with_simd &&
chmod -R 777 target
- host: macos-14
target: wasm32-wasi-preview1-threads
- host: macos-latest
target: wasm32-wasip1-threads
setup: |
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21/wasi-sdk-21.0-macos.tar.gz
tar -xvf wasi-sdk-21.0-macos.tar.gz
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk-22.0-macos.tar.gz
tar -xvf wasi-sdk-22.0-macos.tar.gz
build: |
export WASI_SDK_PATH="$(pwd)/wasi-sdk-21.0"
export WASI_SDK_PATH="$(pwd)/wasi-sdk-22.0"
export CMAKE_BUILD_PARALLEL_LEVEL=2
yarn workspace @napi-rs/image build --target wasm32-wasi-preview1-threads
yarn workspace @napi-rs/image build --target wasm32-wasip1-threads
name: stable - ${{ matrix.settings.target }} - node@20
runs-on: ${{ matrix.settings.host }}
Expand Down Expand Up @@ -459,7 +459,7 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: bindings-wasm32-wasi-preview1-threads
name: bindings-wasm32-wasip1-threads
path: artifacts
- name: Install dependencies
run: yarn install --immutable --mode=skip-build
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
"website"
],
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.41",
"@napi-rs/cli": "^3.0.0-alpha.54",
"@taplo/cli": "^0.7.0",
"@types/node": "^20.11.16",
"@types/node": "^20.12.11",
"@types/sharp": "^0.32.0",
"ava": "^6.1.1",
"ava": "^6.1.3",
"blurhash": "^2.0.5",
"chalk": "^5.3.0",
"electron": "^30.0.0",
"electron": "^30.0.3",
"lerna": "^8.1.2",
"npm-run-all2": "^6.0.0",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
"rxjs": "^7.8.1",
"sharp": "^0.33.2",
"typescript": "^5.3.3"
"sharp": "^0.33.3",
"typescript": "^5.4.5"
},
"scripts": {
"artifacts": "lerna run artifacts",
Expand Down
4 changes: 2 additions & 2 deletions packages/binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"repository": "git@github.com:Brooooooklyn/Image.git",
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.41",
"@napi-rs/wasm-runtime": "^0.2.0"
"@napi-rs/cli": "^3.0.0-alpha.54",
"@napi-rs/wasm-runtime": "^0.2.3"
}
}
14 changes: 7 additions & 7 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"version": "0.0.0",
"type": "module",
"dependencies": {
"@napi-rs/canvas": "^0.1.46",
"@napi-rs/image": "^1.8.0",
"@napi-rs/canvas": "^0.1.52",
"@napi-rs/image": "^1.9.2",
"chalk": "^5.3.0",
"next": "canary",
"next-mdx-remote": "^4.4.1",
"nextra": "^2.13.3",
"nextra-theme-docs": "^2.13.3",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"node-fetch": "^3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.33.2"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sharp": "^0.33.3"
},
"scripts": {
"build": "node generate-img.js && next build",
Expand Down
Loading

0 comments on commit 921ef42

Please sign in to comment.