-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from fireice-uk/rc-1.5.0
release 1.5.0
- Loading branch information
Showing
33 changed files
with
1,126 additions
and
3,045 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# image | ||
image: Visual Studio 2017 | ||
|
||
# build platform | ||
platform: x64 | ||
|
||
# clone directory | ||
clone_folder: c:\xmr-stak-cpu | ||
|
||
install: | ||
- mkdir c:\xmr-stak-dep | ||
- curl -fsS http://slproweb.com/download/Win64OpenSSL-1_0_2L.exe -o Win64OpenSSL.exe | ||
- Win64OpenSSL.exe /silent /verysilent /sp- /suppressmsgboxes | ||
- curl -fsS https://www.open-mpi.org/software/hwloc/v1.11/downloads/hwloc-win64-build-1.11.7.zip -o hwloc-win64-build.zip | ||
- 7z x hwloc-win64-build.zip -o"c:\xmr-stak-dep" -y > nul | ||
- curl -fsS http://mirror.reismil.ch/gnu/libmicrohttpd/libmicrohttpd-latest-w32-bin.zip -o libmicrohttpd-w32-bin.zip | ||
- 7z x libmicrohttpd-w32-bin.zip -o"c:\xmr-stak-dep" -y > nul | ||
|
||
build_script: | ||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" | ||
- cd c:\xmr-stak-cpu | ||
- set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc-win64-build-1.11.7;C:\xmr-stak-dep\libmicrohttpd-0.9.55-w32-bin\x86_64\VS2017\Release-static; | ||
- cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 . | ||
- msbuild xmr-stak-cpu.sln /p:Configuration=Release | ||
|
||
test_script: | ||
- cd c:\xmr-stak-cpu\bin\Release | ||
- copy c:\xmr-stak-dep\hwloc-win64-build-1.11.7\bin\libhwloc-5.dll . | ||
- copy c:\xmr-stak-dep\libmicrohttpd-0.9.55-w32-bin\x86_64\VS2017\Release-dll\libmicrohttpd-dll.dll . | ||
- dir | ||
# - xmr-stak-cpu.exe -c ..\..\..\config.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bin/ | ||
obj/ | ||
build/ | ||
xmr-stak-cpu.layout | ||
xmr-stak-cpu.depend | ||
config-debug.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
dist: trusty | ||
|
||
osx_image: xcode8.3 | ||
|
||
sudo: false | ||
|
||
language: cpp | ||
|
||
addons: | ||
apt: | ||
packages: &default_packages | ||
- cmake | ||
- libmicrohttpd-dev | ||
- libssl-dev | ||
- libhwloc-dev | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
compiler: gcc | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- *default_packages | ||
- gcc-5 | ||
- g++-5 | ||
env: | ||
- CMAKE_CXX_COMPILER=g++-5 | ||
- CMAKE_C_COMPILER=gcc-5 | ||
|
||
- os: linux | ||
compiler: gcc | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- *default_packages | ||
- gcc-6 | ||
- g++-6 | ||
env: | ||
- CMAKE_CXX_COMPILER=g++-6 | ||
- CMAKE_C_COMPILER=gcc-6 | ||
|
||
- os: linux | ||
compiler: gcc | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- *default_packages | ||
- gcc-7 | ||
- g++-7 | ||
env: | ||
- CMAKE_CXX_COMPILER=g++-7 | ||
- CMAKE_C_COMPILER=gcc-7 | ||
|
||
- os: osx | ||
compiler: gcc | ||
|
||
before_install: | ||
- if [ $TRAVIS_OS_NAME = osx ]; then brew tap homebrew/science; fi | ||
|
||
script: | ||
- if [ $TRAVIS_OS_NAME = osx ]; then | ||
brew install hwloc; | ||
cmake -DMICROHTTPD_ENABLE=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .; | ||
else | ||
cmake -D CMAKE_C_COMPILER=${CMAKE_C_COMPILER} -D CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} .; | ||
fi; | ||
- make VERBOSE=1 | ||
- ./bin/xmr-stak-cpu -c ./config.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Compile **xmr-stak** for FreeBSD | ||
|
||
## Install Dependencies | ||
|
||
*Note: This guide is tested for FreeBSD 11.0-RELEASE* | ||
|
||
From the root shell, run the following commands: | ||
|
||
pkg install git libmicrohttpd hwloc cmake | ||
|
||
Type 'y' and hit enter to proceed with installing the packages. | ||
|
||
git clone https://github.com/fireice-uk/xmr-stak-cpu.git | ||
cd xmr-stak-cpu | ||
cmake . | ||
make | ||
|
||
Now you have the binary located at "bin/xmr-stak-cpu". Either move this file to your desired location or run "make install" to install it to your path. | ||
|
||
You can edit the prebuilt [config.txt](config.txt) file found in the root of the repository or you can make your own. This file is required to run xmr-stak-cpu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Compile **xmr-stak** for Linux | ||
|
||
### GNU Compiler | ||
``` | ||
# Ubuntu / Debian | ||
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev | ||
cmake . | ||
make install | ||
# Arch | ||
sudo pacman -S base-devel hwloc openssl cmake libmicrohttpd | ||
cmake . | ||
make install | ||
# Fedora | ||
sudo dnf install gcc gcc-c++ hwloc-devel libmicrohttpd-devel openssl-devel cmake | ||
cmake . | ||
make install | ||
# CentOS | ||
sudo yum install centos-release-scl cmake3 hwloc-devel libmicrohttpd-devel openssl-devel | ||
sudo yum install devtoolset-4-gcc* | ||
sudo scl enable devtoolset-4 bash | ||
cmake3 . | ||
make install | ||
# Ubuntu 14.04 | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
sudo apt update | ||
sudo apt install gcc-5 g++-5 make | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5 | ||
curl -L http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xvzf - -C /tmp/ | ||
cd /tmp/cmake-3.4.1/ && ./configure && make && sudo make install && cd - | ||
sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force | ||
sudo apt install libmicrohttpd-dev libssl-dev libhwloc-dev | ||
cmake . | ||
make install | ||
``` | ||
|
||
- g++ version 5.1 or higher is required for full C++11 support. CMake release compile scripts, as well as CodeBlocks build environment for debug builds is included. | ||
|
||
### To do a static build for a system without gcc 5.1+ | ||
``` | ||
cmake -DCMAKE_LINK_STATIC=ON . | ||
make install | ||
``` | ||
Note - cmake caches variables, so if you want to do a dynamic build later you need to specify '-DCMAKE_LINK_STATIC=OFF' | ||
|
||
|
||
|
Oops, something went wrong.