-
Notifications
You must be signed in to change notification settings - Fork 1
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
362 changed files
with
241 additions
and
159,725 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,108 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOPATH: ${{ github.workspace }} | ||
GO111MODULE: auto | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15.x | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ./src/github.com/${{ github.repository }} | ||
submodules: true | ||
- name: Install apt dependecies | ||
run: | | ||
sudo apt-get install libgit2-dev libssh2-1-dev libssl-dev cmake | ||
- name: Install go dependencies | ||
run: | | ||
go get -d github.com/Masterminds/sprig | ||
- name: Install git2go | ||
run: | | ||
go get -d github.com/libgit2/git2go | ||
cd $GOPATH/src/github.com/libgit2/git2go | ||
git submodule update --init # get libgit2 | ||
cd vendor/libgit2 | ||
mkdir build && cd build | ||
cmake .. | ||
make | ||
sudo make install | ||
cd ../../.. | ||
make install-static | ||
cd $GOPATH | ||
- name: Build | ||
run: | | ||
go get -v -d github.com/kilpkonn/gtm-enhanced | ||
cd $GOPATH/src/github.com/kilpkonn/gtm-enhanced | ||
mkdir build | ||
go build -o build/ ./... | ||
cd build/ | ||
mv gtm-enhanced gtm | ||
chmod +x gtm | ||
cd $GOPATH | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: gtm-linux | ||
path: ./src/github.com/${{ github.repository }}/build/ | ||
build-windows: | ||
runs-on: windows-latest | ||
env: | ||
GOPATH: ${{ github.workspace }} | ||
GO111MODULE: auto | ||
steps: | ||
- uses: crazy-max/ghaction-chocolatey@v1 | ||
with: | ||
args: -h | ||
- name: Install pkg config | ||
run: | | ||
choco install pkgconfiglite | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15.x | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ./src/github.com/${{ github.repository }} | ||
submodules: true | ||
- name: Install go dependencies | ||
run: | | ||
go get -d github.com/Masterminds/sprig | ||
- name: Install git2go | ||
run: | | ||
go get -d github.com/libgit2/git2go | ||
cd ./src/github.com/libgit2/git2go | ||
git submodule update --init # get libgit2 | ||
cd vendor/libgit2 | ||
new-item -Name "build" -ItemType directory | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=D:\a\gtm-enhanced\gtm-enhanced\src\github.com\libgit2\git2go\vendor\libgit2\install .. | ||
cmake --build . --target install | ||
- name: Build | ||
run: | | ||
go get -v -d github.com/kilpkonn/gtm-enhanced | ||
cd ./src/github.com/kilpkonn/gtm-enhanced | ||
new-item -Name "build" -ItemType directory | ||
$env:PKG_CONFIG_PATH += ";D:\a\gtm-enhanced\gtm-enhanced\src\github.com\libgit2\git2go\vendor\libgit2\install\lib\pkgconfig" | ||
go build -o build/ main.go | ||
Copy-Item "D:/a/gtm-enhanced/gtm-enhanced/src/github.com/libgit2/git2go/vendor/libgit2/install/bin/git2.dll" -Destination "./build/git2.dll" | ||
cd build | ||
dir | ||
Rename-Item -Path "main.exe" -NewName "gtm.exe" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: gtm-windows | ||
path: ./src/github.com/${{ github.repository }}/build/ |
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,42 @@ | ||
[submodule "github.com/armon/go-radix"] | ||
path = vendor/github.com/armon/go-radix | ||
url = [email protected]:armon/go-radix | ||
[submodule "github.com/bgentry/speakeasy"] | ||
path = vendor/github.com/bgentry/speakeasy | ||
url = [email protected]:bgentry/speakeasy | ||
[submodule "github.com/briandowns/spinner"] | ||
path = vendor/github.com/briandowns/spinner | ||
url = [email protected]:briandowns/spinner | ||
[submodule "github.com/fatih/color"] | ||
path = vendor/github.com/fatih/color | ||
url = [email protected]:fatih/color | ||
[submodule "github.com/hako/durafmt"] | ||
path = vendor/github.com/hako/durafmt | ||
url = [email protected]:hako/durafmt | ||
[submodule "github.com/hashicorp/go-version"] | ||
path = vendor/github.com/hashicorp/go-version | ||
url = [email protected]:hashicorp/go-version | ||
[submodule "github.com/jinzhu/now"] | ||
path = vendor/github.com/jinzhu/now | ||
url = [email protected]:jinzhu/now | ||
[submodule "github.com/mattn/go-isatty"] | ||
path = vendor/github.com/mattn/go-isatty | ||
url = [email protected]:mattn/go-isatty | ||
[submodule "github.com/mitchellh/cli"] | ||
path = vendor/github.com/mitchellh/cli | ||
url = [email protected]:mitchellh/cli | ||
[submodule "golang.org/x/crypto/ssh/terminal"] | ||
path = vendor/golang.org/x/crypto/ssh/terminal | ||
url = https://go.googlesource.com/crypto | ||
[submodule "github.com/posener/complete"] | ||
path = vendor/github.com/posener/complete | ||
url = [email protected]:posener/complete | ||
[submodule "github.com/hashicorp/go-multierror"] | ||
path = vendor/github.com/hashicorp/go-multierror | ||
url = [email protected]:hashicorp/go-multierror | ||
[submodule "golang.org/x/sys/unix"] | ||
path = vendor/golang.org/x/sys | ||
url = https://go.googlesource.com/sys | ||
[submodule "github.com/hashicorp/errwrap"] | ||
path = vendor/github.com/hashicorp/errwrap | ||
url = [email protected]:hashicorp/errwrap |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.