Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Included Build Targets for Binaries #292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
go-version: 1.19
- name: golangci-lint
uses: golangci/golangci-lint-action@07db5389c99593f11ad7b44463c2d4233066a9b1
run-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613
with:
go-version: 1.19
- name: Build
run: make build
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ __pycache__/

# Test output
unit-coverage.out

# Build output
!scorer/
scorer
enumerate-github
csv-transfer
criticality-score
collect-signals
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ build/docker/enumerate-github:
build/docker/csv-transfer:
DOCKER_BUILDKIT=1 docker build . -f cmd/csv_transfer/Dockerfile --tag $(IMAGE_NAME)-csv-transfer

build-targets = build/enumerate-github build/criticality-score build/collect-signals build/csv-transfer build/scorer
.PHONY: build $(build-targets)
build: $(build-targets) ## Build all binaries
build/enumerate-github:
go build -o enumerate-github ./cmd/enumerate_github
build/criticality-score:
go build -o criticality-score ./cmd/criticality_score
build/collect-signals:
go build -o collect-signals ./cmd/collect_signals
build/csv-transfer:
go build -o csv-transfer ./cmd/csv_transfer
build/scorer:
go build -o scorer ./cmd/scorer

.PHONY: install/deps
install/deps: ## Installs all dependencies during development and building
@echo Installing tools from tools/tools.go
Expand Down