Windows CI: clone torch_dart + reown_flutter from git instead of tarball #29

Merged
such-gitea merged 1 commits from github-such-software/hash-wallet:dev into dev 2026-05-20 15:12:49 -04:00

View File

@@ -61,32 +61,33 @@ jobs:
rustc --version
cargo --version
# ---- External prebuilt deps (mirror Android + iOS workflows) ----------
# ---- External path-dep plugins ----------------------------------------
# Several plugins are path-deps in pubspec.yaml. The path directories
# must exist BEFORE `flutter pub get` runs against the regenerated
# pubspec, or pub fails with "could not find package X at <path>".
# We fetch the same prebuilt tarballs the other platforms use.
#
# The Android + iOS + Linux workflows use upstream-published .tar.gz
# tarballs. We don't, because those tarballs contain example/*
# symlinks pointing to absolute /home/runner/.pub-cache/ paths
# (artifacts from the upstream build host) — Linux tar tolerates
# dangling symlinks, Windows tar bails the whole extraction. Clone
# the source repos at the matching tagged versions instead. Same
# pattern as bitbox_flutter further down.
- name: Fetch prebuilt torch_dart
- name: Clone torch_dart at v1.0.17
run: |
set -x -e
pushd scripts
rm -rf torch_dart torch_dart.tar.gz
curl -fsSL -o torch_dart.tar.gz https://github.com/MrCyjaneK/torch_dart/releases/download/v1.0.17/torch_dart-v1.0.17.tar.gz
mkdir torch_dart
tar -xzf torch_dart.tar.gz -C torch_dart
rm torch_dart.tar.gz
rm -rf torch_dart
git clone --depth 1 --branch v1.0.17 https://github.com/MrCyjaneK/torch_dart
popd
- name: Fetch prebuilt reown_flutter
- name: Clone reown_flutter at v0.0.4
run: |
set -x -e
pushd scripts
rm -rf reown_flutter reown_flutter.tar.gz
curl -fsSL -o reown_flutter.tar.gz https://github.com/cake-tech/reown_flutter/releases/download/v0.0.4/reown_flutter-v0.0.4.tar.gz
mkdir reown_flutter
tar -xzf reown_flutter.tar.gz -C reown_flutter
rm reown_flutter.tar.gz
rm -rf reown_flutter
git clone --depth 1 --branch v0.0.4 https://github.com/cake-tech/reown_flutter
popd
- name: Clone BitBox Flutter