Skip to content

Commit 4c159a7

Browse files
Native Assets CI fix (#20)
* adds native assets debugging statements * Try only downloading target arch * Revert "adds native assets debugging statements" This reverts commit b2bc215. --------- Co-authored-by: Daco Harkes <[email protected]>
1 parent 8980132 commit 4c159a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/mediapipe-task-text/build.dart

+7-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ Future<void> main(List<String> args) async {
5050
buildOutput.dependencies.dependencies
5151
.add(buildConfig.packageRoot.resolve('sdk_downloads.dart'));
5252

53-
final archKeys = sdkDownloadUrls[targetOs]!.keys;
53+
// final archKeys = sdkDownloadUrls[targetOs]!.keys;
54+
final Iterable<String> archKeys;
55+
if (buildConfig.dryRun) {
56+
archKeys = sdkDownloadUrls[targetOs]!.keys;
57+
} else {
58+
archKeys = [buildConfig.targetArchitecture.toString()];
59+
}
5460
for (final String arch in archKeys) {
5561
final assetUrl = sdkDownloadUrls[targetOs]![arch]!;
5662
final downloadFileLocation = buildConfig.outDir.resolve(

0 commit comments

Comments
 (0)