diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d1121755aa1..564f881d990 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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 + diff --git a/Makefile b/Makefile index 4af74b12a4c..4b555117e90 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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