Skip to content

Commit

Permalink
Trying universal build
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Jan 30, 2025
1 parent e0b97a9 commit 94904b9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-macos-arm64.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build macOS arm64 Project

on:
push:
branches:
- automation
pull_request:
# on:
# push:
# branches:
# - automation
# pull_request:

jobs:
build-macos-arm64:
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/build_macos-universal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,27 @@ jobs:
with:
submodules: true

- name: Install x86_64 Homebrew (if missing)
run: |
if [[ ! -d "/usr/local/Homebrew" ]]; then
echo "Installing Homebrew for x86_64..."
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "x86_64 Homebrew already installed."
fi
- name: Install Dependencies
run: |
# Install essential tools
# Install essential tools (native)
brew update
brew install cmake ninja llvm
# Install Boost for both architectures
if [[ $(uname -m) == "arm64" ]]; then
echo "Installing Boost for Universal Build"
arch -x86_64 /opt/homebrew/bin/brew install boost
brew install boost
else
brew install boost
fi
# Install Boost separately for each architecture
echo "Installing Boost for arm64..."
brew install boost
echo "Installing Boost for x86_64..."
arch -x86_64 /usr/local/bin/brew install boost
- name: Configure Build
run: |
Expand Down

0 comments on commit 94904b9

Please sign in to comment.