-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 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,22 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
base=$(pwd) | ||
|
||
git clone -b devel --depth 1000 git://github.com/nim-lang/nim nim | ||
cd nim | ||
# before unchecked was removed: | ||
git checkout cc5b8c6 | ||
sh build_all.sh | ||
export PATH=$(base)/nim/bin:$PATH | ||
|
||
cd $base | ||
git clone --depth 1 git://github.com/brentp/duphold.git | ||
cd duphold | ||
nimble install -y kexpr | ||
nimble install -y genoiser | ||
|
||
nimble install -y | ||
|
||
nim c -d:release src/duphold.nim | ||
cp ./src/duphold /io |
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,7 @@ | ||
set -e | ||
mkdir -p built/ | ||
cp docker/build.sh built/ | ||
docker run -t -i --rm -v `pwd`/built:/io \ | ||
centos:centos6 \ | ||
bash -c "yum install -y git curl wget && wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo && yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ && chmod +x /io/build.sh && scl enable devtoolset-2 /io/build.sh" | ||
echo "binary in built/" |