Skip to content

Commit

Permalink
Add retry to brew calls (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
alugowski authored Oct 14, 2023
1 parent 0b92b85 commit f8cd3b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ jobs:
# GitHub actions comes with libomp already installed, but for its native arch only. Must build universal one
# manually so that both x86 and arm builds can be built.
run: |
brew install coreutils
brew install libomp
brew fetch --retry coreutils && brew install coreutils
brew fetch --retry libomp && brew install libomp
if [[ ${{ matrix.cibw_archs }} == "arm64" ]] ; then
echo "Building universal libomp manually"
sh add_arm_to_libomp_dylib.sh
sh add_arm_to_libomp_dylib.sh || exit 1
fi
- uses: pypa/[email protected]
Expand Down
5 changes: 3 additions & 2 deletions add_arm_to_libomp_dylib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ if [ "$(arch)" != "x86_64" ] && [ "$(arch)" != "i386" ]; then
fi

set -x # echo on
set -e # fail fast

#mkdir x86lib
mkdir armlib

# download and unzip both x86 and arm libomp tarballs
#brew fetch --force --bottle-tag=x86_64_monterey libomp
brew fetch --force --bottle-tag=arm64_big_sur libomp
#brew fetch --retry --force --bottle-tag=x86_64_monterey libomp
brew fetch --retry --force --bottle-tag=arm64_big_sur libomp

# untar
#tar -xzf $(brew --cache --bottle-tag=x86_64_monterey libomp) --strip-components 2 -C x86lib
Expand Down

0 comments on commit f8cd3b4

Please sign in to comment.