diff --git a/.github/workflows/ffigen_weekly.yml b/.github/workflows/ffigen_weekly.yml index 863eac3842..57d9cc48f6 100644 --- a/.github/workflows/ffigen_weekly.yml +++ b/.github/workflows/ffigen_weekly.yml @@ -4,17 +4,18 @@ name: ffigen_weekly on: - # Run once a week. push: branches: [main, stable] paths: - - '.github/workflows/ffigen_weekly.yml' + - '.github/workflows/ffigen.yml' + - 'pkgs/ffigen/**' + - 'pkgs/objective_c/**' pull_request: branches: [main, stable] paths: - - '.github/workflows/ffigen_weekly.yml' - schedule: - - cron: "0 0 * * 0" + - '.github/workflows/ffigen.yml' + - 'pkgs/ffigen/**' + - 'pkgs/objective_c/**' env: PUB_ENVIRONMENT: bot.github diff --git a/pkgs/ffigen/test/native_objc_test/setup.dart b/pkgs/ffigen/test/native_objc_test/setup.dart index aad2ebcfbb..f7f41205c6 100644 --- a/pkgs/ffigen/test/native_objc_test/setup.dart +++ b/pkgs/ffigen/test/native_objc_test/setup.dart @@ -13,7 +13,7 @@ const arcDisabledFiles = { }; Future _runClang(List flags, String output) async { - final args = [...flags, '-o', output]; + final args = [...flags, '-Ofast', '-o', output]; final process = await Process.start('clang', args); unawaited(stdout.addStream(process.stdout)); unawaited(stderr.addStream(process.stderr)); diff --git a/pkgs/objective_c/test/setup.dart b/pkgs/objective_c/test/setup.dart index e78993627b..982264d6fa 100644 --- a/pkgs/objective_c/test/setup.dart +++ b/pkgs/objective_c/test/setup.dart @@ -49,6 +49,7 @@ String _resolve(String file) => _pkgDir.resolve(file).toFilePath(); void _runClang(List flags, String output) { final args = [ ...flags, + '-Ofast', '-o', output, ];