Skip to content

Commit

Permalink
switch to batch script for compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
arguablykomodo committed Jun 1, 2019
1 parent 39e439c commit 66a0d2b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: go
go: "1.12"

script:
- go run compiler/main.go
- ./build.sh

deploy:
- provider: releases
Expand Down
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

OSLIST=(windows darwin linux)
ARCHLIST=(386 amd64)

OSNAMES=(windows mac linux)
ARCHNAMES=(x32 x64)

for I in ${!OSLIST[*]}; do
for J in ${!ARCHLIST[*]}; do
export GOOS=${OSLIST[$I]}
export GOARCH=${ARCHLIST[$J]}
OUT=dist/shadowfox_${OSNAMES[$I]}_${ARCHNAMES[$J]}
if [ $GOOS = windows ]; then
OUT=${OUT}.exe
fi

go build -o $OUT
done
done
39 changes: 0 additions & 39 deletions compiler/main.go

This file was deleted.

0 comments on commit 66a0d2b

Please sign in to comment.