From e82c6d97519b7eb2e434b0da69a1d9f345b98529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksa=20Siri=C5=A1ki?= <31509435+aleksasiriski@users.noreply.github.com> Date: Tue, 21 May 2024 18:08:53 +0200 Subject: [PATCH] chore(makefile): compile instead of build --- .github/workflows/ci_codeql.yml | 2 +- .github/workflows/ci_main.yml | 2 +- .github/workflows/ci_test.yml | 2 +- Makefile | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci_codeql.yml b/.github/workflows/ci_codeql.yml index a56e64fb..e3836d6b 100644 --- a/.github/workflows/ci_codeql.yml +++ b/.github/workflows/ci_codeql.yml @@ -55,7 +55,7 @@ jobs: run: make install - name: Build project - run: make build + run: make compile - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/ci_main.yml b/.github/workflows/ci_main.yml index 4faba00b..a977b1b3 100644 --- a/.github/workflows/ci_main.yml +++ b/.github/workflows/ci_main.yml @@ -62,7 +62,7 @@ jobs: run: make install - name: Build project - run: make build + run: make compile - name: Test units run: make test diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index b7f7a7a0..bd0b71ff 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -32,7 +32,7 @@ jobs: run: make install - name: Build project - run: make build + run: make compile test: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 158d737a..b66fb2cd 100644 --- a/Makefile +++ b/Makefile @@ -19,13 +19,13 @@ install: go generate ./... go install github.com/cosmtrek/air@latest -build: +compile: CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath ./src/... -build-linux: +compile-linux: CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -trimpath -o bin/hearchco ./src -build-macos: +compile-macos: CGO_ENABLED=0 GOOS=darwin go build -ldflags "-s -w" -trimpath -o bin/hearchco ./src -build-windows: +compile-windows: CGO_ENABLED=0 GOOS=windows go build -ldflags "-s -w" -trimpath -o bin/hearchco.exe ./src test: