From eef7d8c23860751d13382ab03ebc46e8cc0ead5d Mon Sep 17 00:00:00 2001 From: Wzp-2008 Date: Sun, 12 Jan 2025 23:33:34 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yaml 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/