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

Replace build with cross-compile #384

Merged
merged 1 commit into from
Jul 7, 2020
Merged
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
31 changes: 8 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ workflows:
- setup:
requires:
- checkout-commit
- build:
- cross-compile:
requires:
- setup
- run-stability-tests:
requires:
- build
- cross-compile
- publish-dev:
requires:
- run-stability-tests
Expand All @@ -126,12 +126,6 @@ workflows:
filters:
tags:
only: /.*/
- build:
requires:
- setup
filters:
tags:
only: /.*/
- build-examples:
requires:
- setup
Expand All @@ -146,7 +140,7 @@ workflows:
only: /.*/
- loadtest:
requires:
- build
- cross-compile
filters:
tags:
only: /.*/
Expand All @@ -161,8 +155,7 @@ workflows:
- lint
- unit-tests
- integration-tests
- build
- cross-compile
- cross-compile
filters:
branches:
ignore: /.*/
Expand All @@ -173,7 +166,7 @@ workflows:
- lint
- unit-tests
- integration-tests
- build
- cross-compile
filters:
branches:
only: /master|release\/.+/
Expand Down Expand Up @@ -205,17 +198,6 @@ jobs:
name: Checks
command: make -j4 checklicense impi misspell

build:
executor: golang
steps:
- restore_workspace
- run:
name: Build collector for linux_amd64
command: make otelcontribcol
- persist_to_workspace:
root: ~/
paths: project/bin

build-examples:
docker:
- image: cimg/go:1.14
Expand All @@ -234,6 +216,9 @@ jobs:
- run:
name: Build collector for all archs
command: grep ^otelcontribcol-all-sys Makefile|fmt -w 1|tail -n +2|circleci tests split|xargs make
- persist_to_workspace:
root: ~/
paths: project/bin

unit-tests:
executor: golang
Expand Down