Skip to content

Commit

Permalink
Remove macOS workaround for numa feature not really working there
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Apr 15, 2024
1 parent 8c1280c commit b83e2ba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,16 @@ jobs:
- name: Install LLVM and Clang for macOS
uses: KyleMayes/install-llvm-action@dec985c8d7b46a2f363ea1a78f660c946a3349ea # v2.0.1
with:
env: true
version: 17
if: runner.os == 'macOS'

# Because macOS, see https://andreasfertig.blog/2021/02/clang-and-gcc-on-macos-catalina-finding-the-include-paths/
- name: Configure C compiler macOS
run: |
echo "SDKROOT='$(xcrun --show-sdk-path)'" >> $GITHUB_ENV
if: runner.os == 'macOS'

# TODO: Workaround for https://github.com/actions/runner-images/issues/9290
- name: Install glibtoolize (macOS)
run: brew install libtool
Expand Down Expand Up @@ -149,9 +156,16 @@ jobs:
- name: Install LLVM and Clang for macOS
uses: KyleMayes/install-llvm-action@dec985c8d7b46a2f363ea1a78f660c946a3349ea # v2.0.1
with:
env: true
version: 17
if: runner.os == 'macOS'

# Because macOS, see https://andreasfertig.blog/2021/02/clang-and-gcc-on-macos-catalina-finding-the-include-paths/
- name: Configure C compiler macOS
run: |
echo "SDKROOT='$(xcrun --show-sdk-path)'" >> $GITHUB_ENV
if: runner.os == 'macOS'

# TODO: Workaround for https://github.com/actions/runner-images/issues/9290
- name: Install glibtoolize (macOS)
run: brew install libtool
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,16 @@ jobs:
- name: Install LLVM and Clang for macOS
uses: KyleMayes/install-llvm-action@dec985c8d7b46a2f363ea1a78f660c946a3349ea # v2.0.1
with:
env: true
version: 17
if: runner.os == 'macOS'

# Because macOS, see https://andreasfertig.blog/2021/02/clang-and-gcc-on-macos-catalina-finding-the-include-paths/
- name: Configure C compiler macOS
run: |
echo "SDKROOT='$(xcrun --show-sdk-path)'" >> $GITHUB_ENV
if: runner.os == 'macOS'

# TODO: Workaround for https://github.com/actions/runner-images/issues/9290
- name: Install glibtoolize (macOS)
run: brew install libtool
Expand Down Expand Up @@ -206,13 +213,6 @@ jobs:
- name: Build farmer (Linux and Windows)
run: |
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer
if: runner.os != 'macOS'

# We build macOS without `numa` feature, primarily because of https://github.com/HadrienG2/hwlocality/issues/31
- name: Build farmer (macOS)
run: |
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer --no-default-features
if: runner.os == 'macOS'
- name: Build node
run: |
Expand Down

0 comments on commit b83e2ba

Please sign in to comment.