Skip to content

Commit

Permalink
Build all artifacts on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and ezr-ondrej committed Apr 15, 2024
1 parent cc3b59e commit 2599e6b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,20 @@ build-test-container:
.

build:
go build -o edge-api .
mkdir -p build 2>/dev/null
go build -o build/edge-api .
go build -o build/edge-api-migrate cmd/migrate/main.go
go build -o build/edge-api-wipe cmd/db/wipe.go
go build -o build/edge-api-migrate-device cmd/db/updDb/set_account_on_device.go
go build -o build/edge-api-migrate-repositories cmd/migraterepos/main.go
go build -o build/edge-api-migrate-groups cmd/migrategroups/main.go
go build -o build/edge-api-ibvents cmd/kafka/main.go
go build -o build/edge-api-images-build pkg/services/images_build/main.go
go build -o build/edge-api-isos-build pkg/services/images_iso/main.go
go build -o build/edge-api-cleanup cmd/cleanup/main.go

clean:
rm -rf build
golangci-lint cache clean

coverage:
Expand Down Expand Up @@ -113,7 +124,8 @@ help:
@echo "build-containers Builds all the container images"
@echo "build-edge-api-container Builds the edge-api container"
@echo "build-test-container Builds the test container"
@echo "clean Removes cached golangci files"
@echo "build Build all binaries into ./build"
@echo "clean Removes binaries and cached golangci files"
@echo "coverage Runs 'go test' coverage on the project"
@echo "coverage-html Create HTML version of coverage report"
@echo "coverage-no-fdo Runs 'go test' coverage on the project without FDO"
Expand Down Expand Up @@ -318,4 +330,4 @@ mockgen: \
pkg/clients/rbac/mock_rbac/client.go \
pkg/clients/inventory/mock_inventory/inventory.go \
pkg/clients/inventorygroups/mock_inventorygroups/client.go \
pkg/clients/imagebuilder/mock_imagebuilder/client.go \
pkg/clients/imagebuilder/mock_imagebuilder/client.go

0 comments on commit 2599e6b

Please sign in to comment.