-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to batch script for compiling
- Loading branch information
1 parent
39e439c
commit 66a0d2b
Showing
3 changed files
with
21 additions
and
40 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ language: go | |
go: "1.12" | ||
|
||
script: | ||
- go run compiler/main.go | ||
- ./build.sh | ||
|
||
deploy: | ||
- provider: releases | ||
|
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 @@ | ||
#!/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 |
This file was deleted.
Oops, something went wrong.