diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..a7a6307 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: ci +on: [pull_request, push, workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: 拉取仓库 + uses: actions/checkout@v4 + - name: 设置node环境 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: 设置node镜像 + run: npm config set registry https://registry.npmmirror.com + - name: 设置bun环境 + run: npm install -g bun + - name: 获取依赖 + run: bun install + - name: 编译 + run: bun run build-only + - name: 上传编译后产物 + uses: actions/upload-artifact@v3 + with: + name: main + path: dist/