Skip to content

Commit 1bfec1c

Browse files
fix: CIワークフローのコード生成コマンドを修正
- build_runnerの実行コマンドをdartからflutterに変更し、正しい環境でのコード生成を実施
1 parent 1c8a05e commit 1bfec1c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ jobs:
6868
- name: Codegen verify (only latest)
6969
if: matrix.flutter == '3.32.x'
7070
run: |
71-
dart run build_runner build -d --build-filter="lib/**"
71+
set -e
72+
export FLUTTER_FRONTEND_SERVER_SNAPSHOT="$FLUTTER_ROOT/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot"
73+
echo "Using frontend_server: $FLUTTER_FRONTEND_SERVER_SNAPSHOT"
74+
test -f "$FLUTTER_FRONTEND_SERVER_SNAPSHOT" || (echo 'frontend_server snapshot not found' && ls -R "$FLUTTER_ROOT/bin/cache/artifacts/engine" && exit 1)
75+
flutter pub get
76+
flutter pub run build_runner build -d --build-filter="lib/**"
7277
git diff --exit-code || (echo 'Codegen produced changes. Please commit generated files.' && exit 1)
7378
7479
example-android:

0 commit comments

Comments
 (0)