From 3a2f2bad152633915c3259019674e8486c294981 Mon Sep 17 00:00:00 2001 From: Hanh Date: Sun, 28 Apr 2024 11:56:50 +1000 Subject: [PATCH] Add apple-darwin-x64 target --- .github/workflows/build-mac.yml | 1 + build-scripts/mac/build-mac.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 9f7e1a22..6e60b2a0 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -21,6 +21,7 @@ jobs: curl https://download.z.cash/downloads/sapling-spend.params --output $HOME/.zcash-params/sapling-spend.params - name: Build Rust run: | + rustup target add x86_64-apple-darwin cargo b -r --target=x86_64-apple-darwin --features=dart_ffi,sqlcipher,ledger - name: Cache rust library uses: actions/cache/save@v3 diff --git a/build-scripts/mac/build-mac.sh b/build-scripts/mac/build-mac.sh index 175c1d1d..6bff3c57 100755 --- a/build-scripts/mac/build-mac.sh +++ b/build-scripts/mac/build-mac.sh @@ -6,6 +6,7 @@ curl https://download.z.cash/downloads/sapling-spend.params --output .zcash-para cp .zcash-params/* $BUILD_DIR/assets/ rustup target add aarch64-apple-darwin +rustup target add x86_64-apple-darwin popd git clone -b "$1" --depth 1 https://github.com/flutter/flutter.git flutter