Skip to content

Commit 8dc976a

Browse files
committed
add archiving to the c-compile script
1 parent 66b1c75 commit 8dc976a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
commitlog.md
22
nimclog
33
nimclog.deps
4+
bin
5+
.DS_Store

cross-compile.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ build_commands=('
1111
; nim c -d:release -d:mingw --cpu:amd64 -o:bin/windows-amd64/nimclog.exe src/nimclog.nim
1212
')
1313

14+
# run a docker container with osxcross and cross compile everything
1415
docker run -it --rm -v `pwd`:/usr/local/src \
1516
chrishellerappsian/docker-nim-cross:latest \
1617
/bin/bash -c "choosenim stable; $build_commands"
18+
19+
20+
# create archives
21+
cd bin
22+
for dir in $(ls -d *);
23+
do
24+
tar cfzv "$dir".tgz $dir
25+
rm -rf $dir
26+
done
27+
cd ..

0 commit comments

Comments
 (0)