Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Workflow Support for Apple Silicon #293

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .github/workflows/build/osx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,29 @@ runs:
with:
python-version: ${{ env.pythonVersion }}

- name: Install Development Dependencies
- name: Install Intel Development Dependencies
if: ${{ env.OSX_CMAKE_TARGET == 'x86_64' }}
shell: bash
run: |
set -ex
brew update-reset
brew install ninja glfw3 glew
pip3 install conan
pip3 install conan=1.58.0

- name: Install Silicon Development Dependencies
if: ${{ env.OSX_CMAKE_TARGET == 'arm64' }}
shell: bash
run: |
set -ex
brew update-reset
brew install ninja
pip3 install conan=1.58.0
PACKAGES=(glfw3 glew)
for PACKAGE in "${PACKAGES[@]}"
do
brew fetch --force --bottle-tag=arm64_monterey $PACKAGE
brew install $(brew --cache --bottle-tag=arm64_monterey $PACKAGE)
done

- name: Probe conan Setup Location
shell: bash
Expand All @@ -33,11 +49,12 @@ runs:
run: |
cd frontend
cmake --preset ci-macos
cmake --build --preset build
cmake --build --preset build -DCMAKE_OSX_ARCHITECTURES:string=${{ env.OSX_CMAKE_TARGET }}

# Deploy Conan dependencies for ease
mkdir deploy && cd deploy
conan install ../build/ -g deploy --settings build_type=Release --settings compiler=apple-clang --settings compiler.version=14.0 --settings compiler.libcxx=libc++ --settings compiler.cppstd=17
conan profile detect
conan install ../build/ -g deploy --settings build_type=Release --settings compiler=apple-clang --settings compiler.version=14.0 --settings compiler.libcxx=libc++ --settings compiler.cppstd=17 --settings arch=${{ env.OSX_CONAN_TARGET }}

- name: Build Backend
shell: bash
Expand All @@ -48,7 +65,7 @@ runs:
- name: Upload Raw Build Artifacts
uses: actions/upload-artifact@v3
with:
name: osx-build
name: osx-build-${{ env.OSX_CMAKE_TARGET }}
path: |
frontend
backend
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: macos-latest
osx_cmake_target: x86_64
osx_conan_target: x86_64
- os: macos-latest
osx_cmake_target: arm64
osx_conan_target: armv8
- os: ubuntu-latest
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down
Loading
Loading