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

Fix d4 build on aarch64 macOS #7

Closed
wants to merge 4 commits into from
Closed
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
18 changes: 14 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on: [workflow_dispatch, push]
env:
CARGO_TERM_COLOR: always
CMAKE_GENERATOR: Ninja
CMAKE_C_COMPILER_LAUNCHER: sccache
CMAKE_CXX_COMPILER_LAUNCHER: sccache
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: true
# FIXME: cc-rs on mac currently won't set the C++ standard correctly (https://github.com/dtolnay/cxx/issues/1217).
CXXFLAGS: -std=c++17
Expand All @@ -32,9 +29,13 @@ jobs:
shell: bash
coverage: true
- os: macos
runner: macos-latest
runner: macos-13
triple: x86_64-apple-darwin
shell: bash
- os: macos
runner: macos-latest
triple: aarch64-apple-darwin
shell: bash
- os: windows
runner: windows-latest
triple: x86_64-pc-windows-gnu
Expand Down Expand Up @@ -74,6 +75,12 @@ jobs:
mv /${{ matrix.target.msystem }}/lib/libtbb12.dll.a /${{ matrix.target.msystem }}/lib/libtbb.dll.a
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Setup sccache environment
if: ${{ matrix.target.triple != 'aarch64-apple-darwin' }}
run: |
echo CMAKE_C_COMPILER_LAUNCHER=sccache >> $GITHUB_ENV
echo CMAKE_CXX_COMPILER_LAUNCHER=sccache >> $GITHUB_ENV
echo RUSTC_WRAPPER=sccache >> $GITHUB_ENV
- name: Setup environment
run: |
export BUILD_ROOT=$(mktemp -d)
Expand All @@ -98,6 +105,9 @@ jobs:
cp LICENSE $BUILD_ROOT/licenses/mt-kahypar/
# TODO: currently, macOS is only supported on master, move below clone to check out latest version when released.
# git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
- name: Setup Homebrew environment
if: ${{ matrix.target.triple == 'aarch64-apple-darwin' && matrix.d4 == 'include' }}
run: echo CPPFLAGS="-I/opt/homebrew/include" >> $GITHUB_ENV
- name: Build (including d4)
if: ${{ matrix.d4 == 'include' }}
run: cargo build
Expand Down
Loading
Loading