From b4ba03050ad13d8fa6971c7be54d091c33e0cca9 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 10:29:16 -0700 Subject: [PATCH 1/8] Bump submodule pins for macOS download portability fix --- crypto_plugins/flutter_libepiccash | 2 +- crypto_plugins/flutter_libmwc | 2 +- crypto_plugins/frostdart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto_plugins/flutter_libepiccash b/crypto_plugins/flutter_libepiccash index 18d803cb2..f4a55aa9e 160000 --- a/crypto_plugins/flutter_libepiccash +++ b/crypto_plugins/flutter_libepiccash @@ -1 +1 @@ -Subproject commit 18d803cb226ea03190b57547d209adba878e3a72 +Subproject commit f4a55aa9e5b6066428402291ed228aa0dd921534 diff --git a/crypto_plugins/flutter_libmwc b/crypto_plugins/flutter_libmwc index f5df6433a..3783b8768 160000 --- a/crypto_plugins/flutter_libmwc +++ b/crypto_plugins/flutter_libmwc @@ -1 +1 @@ -Subproject commit f5df6433a2229e8af0dedc152f2ec56af13bd3dc +Subproject commit 3783b876864384f29840c22fce1fde4a5ce2f6a9 diff --git a/crypto_plugins/frostdart b/crypto_plugins/frostdart index 38fd03cb5..0f9536e78 160000 --- a/crypto_plugins/frostdart +++ b/crypto_plugins/frostdart @@ -1 +1 @@ -Subproject commit 38fd03cb57e16baf2b3d2ce1743f7a745a6416c3 +Subproject commit 0f9536e78ee5f0dcd000a054843a8274d94b0003 From 55bb1f7923c71cd6061be9d3aa9d7f7b9cd34caf Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 10:55:33 -0700 Subject: [PATCH 2/8] Add verbosity to linux CI build to see errors flutter covers --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 06381ede2..3126ac99c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -76,7 +76,7 @@ jobs: - name: Build env: USE_SYSTEM_SECURE_STORAGE_DEPS: "1" - run: flutter build linux --release + run: flutter build linux --release --verbose - name: Package run: | From 94adbb1e4cad834a4755d9e0b9eac04f20aad601 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 11:03:30 -0700 Subject: [PATCH 3/8] Deal with CI runner windows VS quirks --- .github/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3126ac99c..f57f1bb4a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -186,7 +186,7 @@ jobs: path: android-artifacts/ build-windows: - runs-on: windows-latest + runs-on: windows-2022 defaults: run: shell: bash @@ -215,6 +215,9 @@ jobs: flutter-version: '3.38.1' channel: 'stable' + - name: Flutter doctor + run: flutter doctor -v + - name: Configure app run: | cd scripts From d0ecc2dcd917cec49a32f35a10b57ed1b3ee3b73 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 11:05:28 -0700 Subject: [PATCH 4/8] Bump flutter_libmwc to v0.1.2 (iOS shasum fix) --- crypto_plugins/flutter_libmwc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto_plugins/flutter_libmwc b/crypto_plugins/flutter_libmwc index 3783b8768..931062f80 160000 --- a/crypto_plugins/flutter_libmwc +++ b/crypto_plugins/flutter_libmwc @@ -1 +1 @@ -Subproject commit 3783b876864384f29840c22fce1fde4a5ce2f6a9 +Subproject commit 931062f80d5da745ff1535a1ad03ecaae3f87c15 From 1814da031dda17dc8e151e2bebae3faa4cdcd848 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 11:11:57 -0700 Subject: [PATCH 5/8] Update Android job to use docker image with go preinstalled --- .github/workflows/build.yaml | 18 ++++++++++++------ Dockerfile | 9 ++++++++- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f57f1bb4a..eab0c04e3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,11 +19,14 @@ jobs: build-linux: runs-on: ubuntu-24.04 + permissions: + contents: read + packages: read container: - image: stackwallet/stackwallet-ci:latest + image: ghcr.io/${{ github.repository_owner }}/stackwallet-ci:latest credentials: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ github.actor }} + password: ${{ github.token }} steps: - uses: actions/checkout@v6 with: @@ -90,11 +93,14 @@ jobs: build-android: runs-on: ubuntu-24.04 + permissions: + contents: read + packages: read container: - image: stackwallet/stackwallet-ci:latest + image: ghcr.io/${{ github.repository_owner }}/stackwallet-ci:latest credentials: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ github.actor }} + password: ${{ github.token }} steps: - uses: actions/checkout@v6 with: diff --git a/Dockerfile b/Dockerfile index d85309be0..5e37072a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,6 +67,13 @@ RUN mkdir -p "$ANDROID_SDK_ROOT/cmdline-tools" \ "ndk;28.2.13676358" \ && chmod -R a+rwX "$ANDROID_SDK_ROOT" +ENV PATH=/usr/local/go/bin:$PATH + +RUN curl -fsSL https://go.dev/dl/go1.24.13.linux-amd64.tar.gz -o /tmp/go.tar.gz \ + && echo "1fc94b57134d51669c72173ad5d49fd62afb0f1db9bf3f798fd98ee423f8d730 /tmp/go.tar.gz" | sha256sum -c \ + && tar -C /usr/local -xzf /tmp/go.tar.gz \ + && rm /tmp/go.tar.gz + ENV FLUTTER_HOME=/opt/flutter \ PATH=/opt/flutter/bin:/opt/flutter/bin/cache/dart-sdk/bin:$PATH @@ -78,7 +85,7 @@ RUN git clone --depth 1 --branch 3.38.1 https://github.com/flutter/flutter.git " RUN git config --system --add safe.directory '*' -RUN flutter --version && rustc --version && cargo --version && node --version +RUN flutter --version && rustc --version && cargo --version && node --version && go version # Minimal image for flutter test (no Rust, no Android SDK, no cross-compilers) From 1dd4615ba59217e001e5ecf3b3f9693047c56935 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 16:32:37 -0700 Subject: [PATCH 6/8] Run dart run coinlib:build_windows to build secp256k1.dll for Windows --- .github/workflows/build.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eab0c04e3..aa449b398 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -221,6 +221,10 @@ jobs: flutter-version: '3.38.1' channel: 'stable' + - uses: actions/setup-go@v5 + with: + go-version: '1.24.13' + - name: Flutter doctor run: flutter doctor -v @@ -253,6 +257,9 @@ jobs: CHANGE_NOW: ${{ secrets.CHANGE_NOW }} run: echo "$CHANGE_NOW" | base64 --decode > lib/external_api_keys.dart + - name: Build secp256k1.dll for Windows + run: dart run coinlib:build_windows + - name: Build run: flutter build windows --release @@ -294,6 +301,10 @@ jobs: flutter-version: '3.38.1' channel: 'stable' + - uses: actions/setup-go@v5 + with: + go-version: '1.24.13' + - name: Configure app run: | cd scripts @@ -369,6 +380,10 @@ jobs: flutter-version: '3.38.1' channel: 'stable' + - uses: actions/setup-go@v5 + with: + go-version: '1.24.13' + - name: Configure app run: | cd scripts From a0c8757b4384478a010b82d34b1fae7ad1b007a6 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 5 May 2026 23:28:28 -0700 Subject: [PATCH 7/8] Pre-install Rust stable toolchain in CI image --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5e37072a6..127bddd70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | sh -s -- -y --default-toolchain 1.89.0 --profile minimal --no-modify-path \ - && rustup install 1.85.1 1.71.0 --profile minimal \ + && rustup install 1.85.1 1.71.0 stable --profile minimal \ && rustup target add x86_64-unknown-linux-gnu --toolchain 1.89.0 \ && cargo install cargo-ndk \ && chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME" From 41cecbd5729f81a148c45c139bd6d883467e5a58 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Wed, 6 May 2026 00:30:14 -0700 Subject: [PATCH 8/8] Pre-install stable Rust toolchain for iOS cargokit build --- .github/workflows/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index aa449b398..f2f2a488c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -375,6 +375,11 @@ jobs: toolchain: '1.71.0' targets: aarch64-apple-ios + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + targets: aarch64-apple-ios + - uses: subosito/flutter-action@v2 with: flutter-version: '3.38.1'