Skip to content

Commit

Permalink
misc: fix github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zimond committed Jun 3, 2024
1 parent b3fd981 commit b506915
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 196 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16', '18', '20']
node: ["18"]
runs-on: ubuntu-latest

steps:
Expand All @@ -49,10 +49,9 @@ jobs:
with:
key: ${{ matrix.settings.target }}-node@${{ matrix.node }}-cargo-cache

- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: "latest"
- name: Install cargo components
run: |
cargo install cargo-component && yarn global add @bytecodealliance/jco
- name: Install dependencies
run: yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
Expand All @@ -67,4 +66,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: wasm32
path: pkg/**/*.wasm
path: pkg/*.wasm
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt

Expand Down
186 changes: 0 additions & 186 deletions node.js

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"license": "MIT",
"types": "./pkg/bundler/index.d.ts",
"scripts": {
"build": "wasm-pack build --target bundler --out-name index --out-dir pkg/bundler --release && wasm-pack build --target nodejs --out-name index --out-dir pkg/node --release && rm -rf pkg/bundler/package.json",
"build:wasi": "cargo build --release --target wasm32-wasi && mkdir -p pkg/wasi && cp target/wasm32-wasi/release/fontkit.wasm pkg/wasi/",
"build": "cargo component build --release && jco transpile target/wasm32-wasi/release/fontkit.wasm -o pkg --no-namespaced-exports",
"test": "NODE_OPTIONS='--loader=tsx' ava",
"format:rs": "cargo fmt",
"format:source": "prettier --config ./package.json --write './**/*.{js,ts,mjs}'",
Expand Down Expand Up @@ -66,7 +65,6 @@
},
"type": "module",
"dependencies": {
"@bytecodealliance/preview2-shim": "^0.16.1",
"walkdir": "^0.4.1"
"@bytecodealliance/preview2-shim": "^0.16.1"
}
}

0 comments on commit b506915

Please sign in to comment.