Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Combine targets and use -DHUNTER_JOBS_NUMBER=%NUMBER_OF_PROCESSORS%.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 5, 2018
1 parent 569659e commit ce9b682
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ before_install: |
fi
script:
- cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild
- cmake --build build -- -j4
- cmake --build build --target package -- -j4
- build/ethminer/ethminer --list-devices -G
- build/ethminer/ethminer --list-devices -U
- if [ "$TRAVIS_OS_NAME" = linux ]; then ldd -v build/ethminer/ethminer; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then otool -L build/ethminer/ethminer; fi
- cmake --build build --target package

deploy:
- provider: releases
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ install: |
set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%;C:\CUDA\v9.0\bin
pip install requests
nvcc -V
before_build:
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCUDA=ON -DAPICORE=ON
build_script:
- cmake --build build --config %CONFIGURATION%
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCUDA=ON -DAPICORE=ON -DHUNTER_JOBS_NUMBER=%NUMBER_OF_PROCESSORS%
- cmake --build build --config %CONFIGURATION% --target package

after_build:
ps: |
cmake --build build --config $env:configuration --target package
if ($env:configuration -ne "Release") {
Get-Item build/ethminer-*-Windows.* | Rename-Item -NewName { $_.name -Replace 'ethminer','ethminer-dbg' }
}
Expand Down

0 comments on commit ce9b682

Please sign in to comment.