Skip to content

Commit

Permalink
reduce build size
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaasman00 committed Sep 5, 2024
1 parent f3b1446 commit 314b5f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 45 deletions.
48 changes: 6 additions & 42 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,85 +19,49 @@ builds:
binary: observiq-otel-collector
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
- ppc64
- ppc64le
ignore:
- goos: windows
goarch: arm
- goos: windows
- goos: linux
goarch: arm64
- goos: windows
goarch: ppc64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64
- goos: darwin
goarch: ppc64le
goarch: amd64
prebuilt:
path: tmp/collector_{{ .Os }}_{{ .Arch }}{{ .Ext }}
- id: updater
builder: prebuilt
binary: updater
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
- ppc64
- ppc64le
ignore:
- goos: windows
goarch: arm
- goos: windows
- goos: linux
goarch: arm64
- goos: windows
goarch: ppc64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64
- goos: darwin
goarch: ppc64le
goarch: amd64
prebuilt:
path: tmp/updater_{{ .Os }}_{{ .Arch }}{{ .Ext }}
- id: supervisor
builder: prebuilt
binary: opampsupervisor
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
- ppc64
- ppc64le
ignore:
- goos: windows
goarch: arm
- goos: windows
- goos: linux
goarch: arm64
- goos: windows
goarch: ppc64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64
- goos: darwin
goarch: ppc64le
goarch: amd64
prebuilt:
path: release_deps/supervisor_bin/opampsupervisor_{{ .Os }}_{{ .Arch }}{{ .Ext }}

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ reset: kill
build-binaries: agent updater

.PHONY: build-all
build-all: build-linux build-darwin build-windows
build-all: build-linux-amd64 build-darwin-arm64

.PHONY: build-linux
build-linux: build-linux-amd64 build-linux-arm64 build-linux-arm build-linux-ppc64 build-linux-ppc64le
build-linux: build-linux-amd64 build-linux-arm64

.PHONY: build-darwin
build-darwin: build-darwin-amd64 build-darwin-arm64
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/download-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl -fL -o "$DOWNLOAD_DIR/opentelemetry-java-contrib-jmx-metrics.jar" \
# download contrib repo and manually build supervisor repos
echo "Cloning supervisor repo"
SUPERVISOR_REPO="https://github.com/open-telemetry/opentelemetry-collector-contrib.git"
PLATFORMS=("linux/amd64" "linux/arm64" "linux/arm" "linux/ppc64" "linux/ppc64le" "darwin/amd64" "darwin/arm64" "windows/amd64")
PLATFORMS=("linux/amd64" "darwin/arm64")

mkdir "$DOWNLOAD_DIR/supervisor_bin"
$(cd $DOWNLOAD_DIR && git clone --depth 1 "$SUPERVISOR_REPO")
Expand Down

0 comments on commit 314b5f3

Please sign in to comment.