Skip to content

Commit

Permalink
Merge pull request #308 from hearchco/as/chore/makefile
Browse files Browse the repository at this point in the history
chore(makefile): compile instead of build
  • Loading branch information
aleksasiriski authored May 21, 2024
2 parents f77d611 + e82c6d9 commit 436e017
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: make install

- name: Build project
run: make build
run: make compile

- name: Test units
run: make test
2 changes: 1 addition & 1 deletion .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: make install

- name: Build project
run: make build
run: make compile

test:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 436e017

Please sign in to comment.