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: