mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-26 11:35:23 +00:00
[wip] in GHA on macOS install libomp and augment path/env for using Homebrew llvm and libomp with cmake and nim
This commit is contained in:
parent
19e552fef7
commit
87b2cccb86
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -94,6 +94,15 @@ jobs:
|
||||
echo '${{ github.workspace }}/external/bin' >> $GITHUB_PATH
|
||||
echo "LIBLEOPARD_CMAKE_FLAGS=-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32" >> $GITHUB_ENV
|
||||
|
||||
- name: Install build dependencies (macOS)
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
brew install libomp
|
||||
echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH
|
||||
echo "LDFLAGS=-L$(brew --prefix)/opt/libomp/lib -L$(brew --prefix)/opt/llvm/lib -Wl,-rpath,$(brew --prefix)/opt/llvm/lib" >> $GITHUB_ENV
|
||||
echo "LIBLEOPARD_CMAKE_FLAGS=-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=$(brew --prefix)/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix)/opt/llvm/bin/clang++" >> $GITHUB_ENV
|
||||
echo "NIM_EXTRA_PARAMS=--passL:-fopenmp --passL:-L$(brew --prefix)/opt/libomp/lib" >> $GITHUB_ENV
|
||||
|
||||
- name: Restore MinGW-W64 (Windows) from cache
|
||||
if: runner.os == 'Windows'
|
||||
id: windows-mingw-cache
|
||||
@ -173,4 +182,4 @@ jobs:
|
||||
shell: bash
|
||||
working-directory: nim-dagger
|
||||
run: |
|
||||
make test
|
||||
make V=1 test
|
||||
|
Loading…
x
Reference in New Issue
Block a user