commit
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Timofey.Kovalev 2021-06-11 15:11:22 +03:00
parent ce4cb6c60b
commit f863aef62d
4 changed files with 20 additions and 1 deletions

View File

@ -10,4 +10,8 @@ platform:
steps:
- name: build
commands:
- go build
- make
- name: install
commands:
- make install

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
config.json

1
build/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
craft-bot

12
makefile Normal file
View File

@ -0,0 +1,12 @@
.PHONY: build
all: build
build: build/craft-bot
build/craft-bot: *.go
go build -o build/craft-bot *.go
install: build
mkdir -p /usr/local/craft-bot
install build/craft-bot /usr/local/craft-bot/