mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-02 13:43:08 +00:00
ci: test with refc and orc for Nim v1.4 and v1.6 (#6)
This commit is contained in:
parent
2a6a63923e
commit
980109a73e
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
cache_nonce: [ 1 ]
|
cache_nonce: [ 1 ]
|
||||||
nim_version: [ 1.2.18, 1.4.8, 1.6.4 ]
|
nim_version: [ 1.2.18, 1.4.8, 1.6.6 ]
|
||||||
platform:
|
platform:
|
||||||
- {
|
- {
|
||||||
icon: 🐧,
|
icon: 🐧,
|
||||||
@ -139,9 +139,16 @@ jobs:
|
|||||||
if [[ ${{ matrix.platform.os }} = macos ]]; then
|
if [[ ${{ matrix.platform.os }} = macos ]]; then
|
||||||
export PATH="$(brew --prefix)/opt/llvm/bin:${PATH}"
|
export PATH="$(brew --prefix)/opt/llvm/bin:${PATH}"
|
||||||
export LDFLAGS="-L$(brew --prefix)/opt/libomp/lib -L$(brew --prefix)/opt/llvm/lib -Wl,-rpath,$(brew --prefix)/opt/llvm/lib"
|
export LDFLAGS="-L$(brew --prefix)/opt/libomp/lib -L$(brew --prefix)/opt/llvm/lib -Wl,-rpath,$(brew --prefix)/opt/llvm/lib"
|
||||||
nimble test -d:verbose -d:release -d:LeopardCmakeFlags="-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=$(brew --prefix)/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix)/opt/llvm/bin/clang++" -d:LeopardExtraCompilerlags="-fopenmp" -d:LeopardExtraLinkerFlags="-fopenmp -L$(brew --prefix)/opt/libomp/lib"
|
compiler_extra_options="-d:LeopardCmakeFlags='-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=$(brew --prefix)/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix)/opt/llvm/bin/clang++' -d:LeopardExtraCompilerlags='-fopenmp' -d:LeopardExtraLinkerFlags='-fopenmp -L$(brew --prefix)/opt/libomp/lib'"
|
||||||
|
fi
|
||||||
|
if [[ ${{ matrix.nim_version }} = 1.2.* ]]; then
|
||||||
|
eval nimble --verbose test -d:release --gc:refc ${compiler_extra_options}
|
||||||
|
elif [[ ${{ matrix.nim_version }} = 1.4.* ]]; then
|
||||||
|
eval nimble --verbose test -d:release --gc:refc ${compiler_extra_options}
|
||||||
|
eval nimble --verbose test -d:release --gc:orc ${compiler_extra_options}
|
||||||
else
|
else
|
||||||
nimble test -d:verbose -d:release
|
eval nimble --verbose test -d:release --mm:refc ${compiler_extra_options}
|
||||||
|
eval nimble --verbose test -d:release --mm:orc ${compiler_extra_options}
|
||||||
fi
|
fi
|
||||||
if [[ ${{ matrix.platform.os }} = macos ]]; then
|
if [[ ${{ matrix.platform.os }} = macos ]]; then
|
||||||
echo
|
echo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user