Skip to content

Commit

Permalink
Native Assets CI fix (#20)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
craiglabenz and dcharkes authored Mar 12, 2024
1 parent 8980132 commit 4c159a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/mediapipe-task-text/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ Future<void> main(List<String> args) async {
buildOutput.dependencies.dependencies
.add(buildConfig.packageRoot.resolve('sdk_downloads.dart'));

final archKeys = sdkDownloadUrls[targetOs]!.keys;
// final archKeys = sdkDownloadUrls[targetOs]!.keys;
final Iterable<String> archKeys;
if (buildConfig.dryRun) {
archKeys = sdkDownloadUrls[targetOs]!.keys;
} else {
archKeys = [buildConfig.targetArchitecture.toString()];
}
for (final String arch in archKeys) {
final assetUrl = sdkDownloadUrls[targetOs]![arch]!;
final downloadFileLocation = buildConfig.outDir.resolve(
Expand Down

0 comments on commit 4c159a7

Please sign in to comment.