Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Oct 29, 2024
1 parent 1ece664 commit f14d8f6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions pkgs/ffigen/example/shared_bindings/generate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';
import 'package:cli_util/cli_util.dart';
import 'package:path/path.dart' as p;

ProcessResult runFfigenForConfig(String sdkPath, String configPath) {
ProcessResult runFfigenForConfig(String configPath) {
return Process.runSync(
p.join(sdkPath, 'bin', 'dart'),
[
Expand All @@ -16,14 +16,13 @@ ProcessResult runFfigenForConfig(String sdkPath, String configPath) {
}

void main() {
final sdkPath = getSdkPath();
final configPaths = [
'ffigen_configs/base.yaml',
'ffigen_configs/a.yaml',
'ffigen_configs/a_shared_base.yaml'
];
for (final configPath in configPaths) {
final res = runFfigenForConfig(sdkPath, configPath);
final res = runFfigenForConfig(configPath);
print(res.stdout.toString());
if (res.exitCode != 0) {
throw Exception('Some error occurred: ${res.stderr.toString()}');
Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/example/shared_bindings/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:
sdk: '>=3.2.0 <4.0.0'

dependencies:
cli_util: ^0.4.0
cli_util: ^0.4.2
ffi: ^2.0.1
path: ^1.8.0

Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ environment:

dependencies:
args: ^2.0.0
cli_util: ^0.4.0
cli_util: ^0.4.2
collection: ^1.18.0
ffi: ^2.0.1
file: ^7.0.0
Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/test/header_parser_tests/dart_handle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void main() {
${strings.name}: 'NativeLibrary'
${strings.description}: 'Dart_Handle Test'
${strings.output}: 'unused'
${strings.compilerOpts}: '-I${path.join(getSdkPath(), "include")}'
${strings.compilerOpts}: '-I${path.join(sdkPath, "include")}'
${strings.headers}:
${strings.entryPoints}:
Expand Down

0 comments on commit f14d8f6

Please sign in to comment.