Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
5c404c186e | |||
a34ab61193 | |||
3c2f929873 | |||
4ba111ff96 | |||
339bb81ad1 | |||
dd5135511b |
4 changed files with 8 additions and 5 deletions
|
@ -35,7 +35,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare Build Environment
|
- name: Prepare Build Environment
|
||||||
run: |
|
run: |
|
||||||
apt update && apt -y install zip nodejs curl jq golang
|
apt update && apt -y install zip nodejs curl jq golang git
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -45,6 +45,9 @@ jobs:
|
||||||
# Create the build directory for a consistent place to store binaries
|
# Create the build directory for a consistent place to store binaries
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
|
# Do a quick tidy
|
||||||
|
go mod tidy
|
||||||
|
|
||||||
# Iterate over the cmd directory to compile all binaries found there
|
# Iterate over the cmd directory to compile all binaries found there
|
||||||
ls ./cmd | while read BINARY ; do
|
ls ./cmd | while read BINARY ; do
|
||||||
go build -v -o build/${BINARY} ./cmd/${BINARY}
|
go build -v -o build/${BINARY} ./cmd/${BINARY}
|
||||||
|
|
|
@ -2,8 +2,8 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"repobase.net/j/internal/greet"
|
"repobase.net/j/workflow-sample-go/internal/greet"
|
||||||
"repobase.net/j/pkg/util"
|
"repobase.net/j/workflow-sample-go/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,2 +1,2 @@
|
||||||
module repobase.net/j/workflow-sample-go
|
module repobase.net/j/workflow-sample-go
|
||||||
go 1.22
|
go 1.19
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package util
|
package util
|
||||||
|
|
||||||
import fmt
|
import "fmt"
|
||||||
|
|
||||||
func PrintVersion() {
|
func PrintVersion() {
|
||||||
fmt.Println("v4.2.0")
|
fmt.Println("v4.2.0")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue