Skip to content

Commit

Permalink
fix: cross-compile for Apple Silicon (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero authored Oct 17, 2023
1 parent 99d743c commit b0df946
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,22 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Add aarch64 target
run: rustup target add aarch64-apple-darwin

- name: Build
- name: Build for Mac with Intel
run: cargo build --release

- name: Build for Apple Silicon
run: cargo build --release --target=aarch64-apple-darwin

- name: "Move to outputs/ folder"
run: |
mkdir outputs
cp target/release/whisper outputs/whisper-darwin-x86_64
cp target/aarch64-apple-darwin/release/whisper outputs/whisper-darwin-aarch64
- name: Upload to temporary storage
uses: actions/upload-artifact@master
with:
Expand Down

0 comments on commit b0df946

Please sign in to comment.