From 63ccea9ea027e889e47925de30abc905d8429d71 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:22:10 +0800 Subject: [PATCH] Install rosetta on macos-aarch64 --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2319addd..e4cad2f1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -118,6 +118,10 @@ jobs: git: https://github.com/cross-rs/cross.git rev: 085092c + - name: Install rosetta for MacOS ARM + if: matrix.build == 'macos-aarch64' + run: softwareupdate --install-rosetta + - name: Build id: build run: ${{ matrix.cargo }} build --verbose --target ${{ matrix.target }}