Skip to content

Commit

Permalink
Update macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DBauer15 authored Apr 13, 2024
1 parent 8243f44 commit e11f656
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,49 @@ env:
TBB_VERSION: 2021.11.0

jobs:
macos-arm64:
env:
PACKAGE_NAME: stage-macos-arm64

runs-on: self-hosted

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Env
run: |
mkdir -p ${{github.workspace}}/dependencies
mkdir -p ${{github.workspace}}/build
mkdir -p ${{github.workspace}}/install/${PACKAGE_NAME}
- name: Download TBB
working-directory: ${{github.workspace}}/dependencies
run: |
arch -arm64 brew update
arch -arm64 brew install tbb
- name: Configure
working-directory: ${{github.workspace}}/build
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/${PACKAGE_NAME}
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DCMAKE_OSX_ARCHITECTURES="arm64"
-DSTAGE_LOGGING_OFF=ON
-DBUILD_SHARED_LIBS=ON
-DTBB_DIR=${{github.workspace}}/dependencies/oneapi-tbb-${TBB_VERSION}/lib/cmake/tbb/
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . -j --target install

- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{env.PACKAGE_NAME}}
path: ${{github.workspace}}/install
# macos-arm64:
# env:
# PACKAGE_NAME: stage-macos-arm64

# runs-on: self-hosted

# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive

# - name: Setup Env
# run: |
# mkdir -p ${{github.workspace}}/dependencies
# mkdir -p ${{github.workspace}}/build
# mkdir -p ${{github.workspace}}/install/${PACKAGE_NAME}

# - name: Download TBB
# working-directory: ${{github.workspace}}/dependencies
# run: |
# arch -arm64 brew update
# arch -arm64 brew install tbb

# - name: Configure
# working-directory: ${{github.workspace}}/build
# run: >
# cmake $GITHUB_WORKSPACE
# -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/${PACKAGE_NAME}
# -DCMAKE_BUILD_TYPE=$BUILD_TYPE
# -DCMAKE_OSX_ARCHITECTURES="arm64"
# -DSTAGE_LOGGING_OFF=ON
# -DBUILD_SHARED_LIBS=ON
# -DTBB_DIR=${{github.workspace}}/dependencies/oneapi-tbb-${TBB_VERSION}/lib/cmake/tbb/

# - name: Build
# working-directory: ${{github.workspace}}/build
# run: cmake --build . -j --target install

# - name: Upload
# uses: actions/upload-artifact@v4
# with:
# name: ${{env.PACKAGE_NAME}}
# path: ${{github.workspace}}/install

macos-x86_64:
env:
Expand Down

0 comments on commit e11f656

Please sign in to comment.