diff --git a/.github/main.workflow b/.github/main.workflow index 10c9cbc..8d2fbef 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -4,6 +4,6 @@ workflow "Main" { } action "vuefun Build" { - uses = "./vuefun/.actions/build" - args = "wat" + uses = "cedrickring/golang-action/g,1.11@1.1.1" + args = "make -C vuefun" } diff --git a/vuefun/.actions/build/Dockerfile b/vuefun/.actions/build/Dockerfile deleted file mode 100644 index 1246d99..0000000 --- a/vuefun/.actions/build/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM golang:1.11-slim - -LABEL "com.github.actions.name"="vuefun Build" -LABEL "com.github.actions.description"="Build the vuefun thing" -LABEL "com.github.actions.color"="gray" - -LABEL "repository"="https://github.com/meatballhat/box-o-sand" -LABEL "homepage"="https://github.com/meatballhat/box-o-sand" -LABEL "maintainer"="Dan Buch " - -ADD entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] diff --git a/vuefun/.actions/build/entrypoint.sh b/vuefun/.actions/build/entrypoint.sh deleted file mode 100644 index f9b2e3a..0000000 --- a/vuefun/.actions/build/entrypoint.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -set -e -echo "Well Hello There" -echo "You said: ${*}" diff --git a/vuefun/Makefile b/vuefun/Makefile new file mode 100644 index 0000000..708799e --- /dev/null +++ b/vuefun/Makefile @@ -0,0 +1,17 @@ +BUILD_NAME := $(shell go env GOOS)_$(shell go env GOARCH) +TARGETS := build/$(BUILD_NAME)/vuefun-app + + +.PHONY: all +all: $(TARGETS) + +.PHONY: wat +wat: + @echo TARGETS="$(TARGETS)" + +.PHONY: clean +clean: + rm -rf build + +build/$(BUILD_NAME)/vuefun-app: $(wildcard *.go) + go build -o $@ $< diff --git a/vuefun/build/linux_amd64/vuefun-app b/vuefun/build/linux_amd64/vuefun-app new file mode 100755 index 0000000..0c98c12 Binary files /dev/null and b/vuefun/build/linux_amd64/vuefun-app differ