feat: upgrade ttf-parser for phantom points, add variations to font-key #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
env: | |
DEBUG: napi:* | |
APP_NAME: font-toolkit | |
MACOSX_DEPLOYMENT_TARGET: "10.13" | |
"on": | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- "**" | |
# 忽略以下文件 | |
paths-ignore: | |
- "**/*.md" | |
- "LICENSE" | |
- "**/*.gitignore" | |
- ".editorconfig" | |
- "docs/**" | |
- "example/*.png" | |
pull_request: null | |
jobs: | |
build-wasm: | |
name: Build and test wasm - node@${{ matrix.node }}(Linux-x64-gnu) | |
strategy: | |
fail-fast: false | |
matrix: | |
node: ["19"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Install | |
run: | | |
rustup target add wasm32-wasi | |
- name: Cache cargo | |
uses: Swatinem/rust-cache@v1 | |
with: | |
key: ${{ matrix.settings.target }}-node@${{ matrix.node }}-cargo-cache | |
- 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 | |
- name: Build wasm | |
run: yarn build | |
- name: Test wasm | |
run: yarn test | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wasm32 | |
path: pkg/*.wasm |