Compare commits

..

No commits in common. "main" and "v0.0.1" have entirely different histories.
main ... v0.0.1

4 changed files with 6 additions and 9 deletions

View file

@ -35,7 +35,7 @@ jobs:
- name: Prepare Build Environment
run: |
apt update && apt -y install zip nodejs curl jq golang git
apt update && apt -y install zip nodejs curl jq golang
- name: Checkout repo
uses: actions/checkout@v4
@ -45,11 +45,8 @@ jobs:
# Create the build directory for a consistent place to store binaries
mkdir -p build
# Do a quick tidy
go mod tidy
# Iterate over the cmd directory to compile all binaries found there
ls ./cmd | while read BINARY ; do
ls ${SOURCE_DIR}/cmd | while read BINARY ; do
go build -v -o build/${BINARY} ./cmd/${BINARY}
done

View file

@ -2,8 +2,8 @@ package main
import (
"fmt"
"repobase.net/j/workflow-sample-go/internal/greet"
"repobase.net/j/workflow-sample-go/pkg/util"
"repobase.net/j/internal/greet"
"repobase.net/j/pkg/util"
)
func main() {

2
go.mod
View file

@ -1,2 +1,2 @@
module repobase.net/j/workflow-sample-go
go 1.19
go 1.22

View file

@ -1,6 +1,6 @@
package util
import "fmt"
import fmt
func PrintVersion() {
fmt.Println("v4.2.0")