Skip to content

Commit

Permalink
Add build for macs with intel (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinag08 authored May 16, 2024
1 parent 42e30a0 commit de84ddb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
matrix:
os: [ darwin, linux ]
arch: [ amd64, arm64 ]
exclude:
- os: darwin
arch: amd64
permissions:
contents: read
id-token: write
Expand Down
8 changes: 6 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
set -e
echo "Determining target OS and architecture..."
ARCH=$(uname -m)
if [[ "$OSTYPE" =~ ^darwin && "$ARCH" =~ arm64 ]]; then
bin_name=snd-darwin-arm64
if [[ "$OSTYPE" =~ ^darwin ]]; then
if [[ "$ARCH" =~ arm64 ]]; then
bin_name=snd-darwin-arm64
elif [[ "$ARCH" =~ (amd64|x86_64|x64) ]]; then
bin_name=snd-darwin-amd64
fi
elif [[ "$OSTYPE" =~ ^linux ]]; then
if [[ "$ARCH" =~ arm64 ]]; then
bin_name=snd-linux-arm64
Expand Down

0 comments on commit de84ddb

Please sign in to comment.