Skip to content

Commit

Permalink
Include unstable collector in build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pmm-sumo committed Sep 3, 2021
1 parent b7a78a3 commit 9ca46a0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,13 @@ jobs:
with:
name: collector-binaries
path: ./bin.tar
- name: Build Unstable Collector for All Architectures
run: make binaries-all-sys-unstable
- name: Create Unstable Collector Binaries Archive
run: tar -cvf bin-unstable.tar ./bin/*unstable
- name: Upload Unstable Collector Binaries
uses: actions/upload-artifact@v2.2.4
with:
name: collector-binaries-unstable
path: ./bin-unstable.tar

23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ docker-otelcol:
.PHONY: binaries-all-sys
binaries-all-sys: binaries-darwin_amd64 binaries-darwin_arm64 binaries-linux_amd64 binaries-linux_arm64 binaries-windows_amd64

.PHONY: binaries-all-sys-unstable
binaries-all-sys-unstable: binaries-darwin_amd64-unstable binaries-darwin_arm64-unstable binaries-linux_amd64-unstable binaries-linux_arm64-unstable binaries-windows_amd64-unstable

.PHONY: binaries-darwin_amd64
binaries-darwin_amd64:
GOOS=darwin GOARCH=amd64 $(MAKE) build-binary-internal
Expand All @@ -238,6 +241,26 @@ binaries-linux_arm64:
binaries-windows_amd64:
GOOS=windows GOARCH=amd64 EXTENSION=.exe $(MAKE) build-binary-internal

.PHONY: binaries-darwin_amd64
binaries-darwin_amd64:
GOOS=darwin GOARCH=amd64 $(MAKE) build-binary-internal

.PHONY: binaries-darwin_arm64-unstable
binaries-darwin_arm64-unstable:
GOOS=darwin GOARCH=arm64 $(MAKE) build-binary-internal-unstable

.PHONY: binaries-linux_amd64-unstable
binaries-linux_amd64-unstable:
GOOS=linux GOARCH=amd64 $(MAKE) build-binary-internal-unstable

.PHONY: binaries-linux_arm64-unstable
binaries-linux_arm64-unstable:
GOOS=linux GOARCH=arm64 $(MAKE) build-binary-internal-unstable

.PHONY: binaries-windows_amd64-unstable
binaries-windows_amd64-unstable:
GOOS=windows GOARCH=amd64 EXTENSION=.exe $(MAKE) build-binary-internal-unstable

.PHONY: build-binary-internal
build-binary-internal:
GO111MODULE=on CGO_ENABLED=0 go build -trimpath -o ./bin/otelcol_$(GOOS)_$(GOARCH)$(EXTENSION) $(BUILD_INFO) ./cmd/otelcol
Expand Down

0 comments on commit 9ca46a0

Please sign in to comment.