Skip to content

Commit

Permalink
Conditionally add target architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Keefe authored and Michael O'Keefe committed Nov 18, 2024
1 parent 501b2c6 commit 3cf1bd3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
- name: set up rust
uses: dtolnay/rust-toolchain@stable
- run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
if [[ $(sysctl -n machdep.cpu.brand_string) =~ "Apple" ]]; then
rustup target add aarch64-apple-darwin;
else
rustup target add x86_64-apple-darwin;
fi
if: matrix.os == 'macos'
shell: bash
- name: set up python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 3cf1bd3

Please sign in to comment.