diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3172121851d..cc1f2b1a3d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,8 +61,11 @@ jobs: key: ${{ runner.os }}-cargo-${{ matrix.arch }} - name: build run: | - declare -A rust_target_map=( ["amd64"]="x86_64-apple-darwin" ["arm64"]="aarch64-apple-darwin") - RUST_TARGET=${rust_target_map[${{ matrix.arch }}]} + if [[ "${{matrix.arch}}" == "amd64" ]]; then + RUST_TARGET="x86_64-apple-darwin" + else + RUST_TARGET="aarch64-apple-darwin" + fi cargo install --version 0.2.4 cross rustup target add ${RUST_TARGET} rustup component add rustfmt clippy diff --git a/Cargo.lock b/Cargo.lock index 711f39cf893..9d4c44e1eef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -494,9 +494,9 @@ dependencies = [ [[package]] name = "fuse-backend-rs" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58a8f2394690faff745335f120fad1d7d8bd737069690c856c11befa7bca1b18" +checksum = "dc24820b14267bec37fa87f5c2a32b5f1c5405b8c60cc3aa77afd481bd2628a6" dependencies = [ "arc-swap", "bitflags",