mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-22 19:33:32 +03:00
Add Github workflow
This commit is contained in:
parent
b4c0647259
commit
79775cc422
1 changed files with 0 additions and 0 deletions
28
.github/workflows/build.sh
vendored
28
.github/workflows/build.sh
vendored
|
@ -1,28 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
PROJECT_ROOT="/go/src/github.com/${GITHUB_REPOSITORY}"
|
||||
|
||||
mkdir -p $PROJECT_ROOT
|
||||
rmdir $PROJECT_ROOT
|
||||
ln -s $GITHUB_WORKSPACE $PROJECT_ROOT
|
||||
cd $PROJECT_ROOT
|
||||
go get -v ./...
|
||||
go get github.com/GeertJohan/go.rice/rice
|
||||
|
||||
EXT=''
|
||||
|
||||
if [ $GOOS == 'windows' ]; then
|
||||
EXT='.exe'
|
||||
fi
|
||||
|
||||
if [ -x "./build.sh" ]; then
|
||||
OUTPUT=`./build.sh "${CMD_PATH}"`
|
||||
else
|
||||
rice embed-go
|
||||
go build "${CMD_PATH}"
|
||||
OUTPUT="${PROJECT_NAME}${EXT}"
|
||||
fi
|
||||
|
||||
echo ${OUTPUT}
|
Loading…
Add table
Add a link
Reference in a new issue