Skip to content

feat: 同时构建 cpu 和 gpu 的版本 #64

feat: 同时构建 cpu 和 gpu 的版本

feat: 同时构建 cpu 和 gpu 的版本 #64

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
merge_group: {}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install
run: pnpm i
- name: Lint
run: pnpm run lint
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
node_version: 16
- os: windows-latest
node_version: 16
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: pnpm
- run: corepack enable
- name: Install
run: pnpm i
- name: Build Addons
run: node ./script/post.js
# - name: Test
# run: pnpm run test