Skip to content

Commit

Permalink
adding cmake flags for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
oulap committed Sep 27, 2024
1 parent fe457c3 commit b251c50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
echo "ARCHFLAGS=${ARCHFLAGS=}" >> $GITHUB_ENV
PYTHON_VERSION_STR=$(python -c "import sys;print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
echo "PYTHON_VERSION_STR=${PYTHON_VERSION_STR}" >> $GITHUB_ENV
CMAKE_OSX_ARCHITECTURES="arm64"
echo "CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}" >> $GITHUB_ENV
- name: Detect if x64 and set build variables
if: runner.arch == 'x64'
Expand All @@ -58,6 +60,8 @@ jobs:
echo "ARCHFLAGS=${ARCHFLAGS=}" >> $GITHUB_ENV
PYTHON_VERSION_STR=$(python -c "import sys;print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
echo "PYTHON_VERSION_STR=${PYTHON_VERSION_STR}" >> $GITHUB_ENV
CMAKE_OSX_ARCHITECTURES="x86_64"
echo "CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}" >> $GITHUB_ENV
- name: Checkout submodules
run: |
Expand Down Expand Up @@ -98,6 +102,7 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: ${{ env.MACOSX_DEPLOYMENT_TARGET }}
_PYTHON_HOST_PLATFORM: ${{ env._PYTHON_HOST_PLATFORM }}
ARCHFLAGS: ${{ env.ARCHFLAGS }}
CMAKE_OSX_ARCHITECTURES: ${{ env.CMAKE_OSX_ARCHITECTURES }}

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit b251c50

Please sign in to comment.