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 d65ba3f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 38 deletions.
45 changes: 9 additions & 36 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,13 @@ builds:
goarch:
- amd64
- arm64
- arm
- ppc64
- ppc64le
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: windows
goarch: ppc64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64
- goos: linux
goarch: arm64
- goos: darwin
goarch: ppc64le
goarch: amd64
prebuilt:
path: tmp/collector_{{ .Os }}_{{ .Arch }}{{ .Ext }}
- id: updater
Expand All @@ -54,22 +45,13 @@ builds:
goarch:
- amd64
- arm64
- arm
- ppc64
- ppc64le
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: windows
goarch: ppc64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64
- goos: linux
goarch: arm64
- goos: darwin
goarch: ppc64le
goarch: amd64
prebuilt:
path: tmp/updater_{{ .Os }}_{{ .Arch }}{{ .Ext }}
- id: supervisor
Expand All @@ -82,22 +64,13 @@ builds:
goarch:
- amd64
- arm64
- arm
- ppc64
- ppc64le
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: windows
goarch: ppc64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64
- goos: linux
goarch: arm64
- goos: darwin
goarch: ppc64le
goarch: amd64
prebuilt:
path: release_deps/supervisor_bin/opampsupervisor_{{ .Os }}_{{ .Arch }}{{ .Ext }}

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ build-binaries: agent updater
build-all: build-linux build-darwin build-windows

.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" "windows/amd64")

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

0 comments on commit d65ba3f

Please sign in to comment.