Compare commits
No commits in common. "main" and "v0.0.1" have entirely different histories.
4 changed files with 6 additions and 9 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 git
|
apt update && apt -y install zip nodejs curl jq golang
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -45,11 +45,8 @@ 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 ${SOURCE_DIR}/cmd | while read BINARY ; do
|
||||||
go build -v -o build/${BINARY} ./cmd/${BINARY}
|
go build -v -o build/${BINARY} ./cmd/${BINARY}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"repobase.net/j/workflow-sample-go/internal/greet"
|
"repobase.net/j/internal/greet"
|
||||||
"repobase.net/j/workflow-sample-go/pkg/util"
|
"repobase.net/j/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.19
|
go 1.22
|
||||||
|
|
|
@ -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