From 84948fccc9e13c275d4f73b832a7ce8dd2e986e0 Mon Sep 17 00:00:00 2001
From: "Lucian I. Last"
Date: Thu, 19 Dec 2024 14:53:14 +0100
Subject: [PATCH] Fix github actions
---
.github/workflows/publish.yml | 2 +-
Makefile | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 06e0f0f..882d795 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -35,7 +35,7 @@ jobs:
run: test -z "$(gofmt -l .)"
# Build the Go application
- name: Build the application
- run: go build -o tigerbeetle_api .
+ run: go generate ./... && go build -o tigerbeetle_api .
build-and-publish:
runs-on: ubuntu-latest
needs: lint
diff --git a/Makefile b/Makefile
index 53b4d85..e4c6b50 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,11 @@ start:
.PHONY: build
build:
+ go generate ./...
go build .
buildexec:
- go build .
+ make build
./tigerbeetle_api
release: release-darwin-arm64 release-darwin-arm64 release-linux-amd64 release-linux-arm64