Skip to content

修复在mac下无法读取用户目录&&添加mac的构建 #2

修复在mac下无法读取用户目录&&添加mac的构建

修复在mac下无法读取用户目录&&添加mac的构建 #2

Workflow file for this run

name: Flutter CI
on: [ push, pull_request ]
jobs:
lint-test-build:
name: Lint, Test, and Build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version-file: pubspec.yaml
- name: Install dependencies
run: flutter pub get
- name: Analyze project source
run: flutter analyze
- name: Run tests
run: flutter test
- name: Build Windows release
run: flutter build windows --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-release
path: build/windows/x64/runner/Release
overwrite: true
compression-level: 9
retention-days: 90