ci: 添加了自动构建
Some checks failed
ci / build (push) Failing after 0s

This commit is contained in:
Wzp-2008 2025-01-12 23:33:34 +08:00
parent 5d5fc49334
commit eef7d8c238

26
.github/workflows/ci.yaml vendored Normal file
View File

@ -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/