Skip to content

Commit

Permalink
chore(makefile): compile instead of build
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksasiriski committed May 21, 2024
1 parent f77d611 commit e82c6d9
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 e82c6d9

Please sign in to comment.