Files
loongyan/.gitea/workflows/dart-ci.yml
lzw-723 5ba9430d9e
All checks were successful
Dart CI / build (push) Successful in 1m7s
修复工作流build目录不存在的问题
2026-04-03 21:20:02 +08:00

38 lines
798 B
YAML

name: Dart CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: 'stable' # 可选: stable, beta, dev 或具体版本如 3.3.0
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze
- name: Run tests
run: dart test
- name: Prepare build directory
run: mkdir -p build
- name: Build executable
run: dart compile exe bin/server.dart -o build/loongyan