Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
release: drop sam-box and nano-init build ids, gate the goreleaser config in CI
Antonio Ojeac3cc97f8b0e8
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yamlindex 098ddc0a..bd603a82 100644--- a/.github/workflows/test.yaml+++ b/.github/workflows/test.yaml@@ -67,6 +67,30 @@ jobs:run: sudo apt-get update && sudo apt-get install -y protobuf-compiler- run: make verify+ # A build id whose cmd/ directory no longer exists only fails on the tag+ # push, after the release is already underway; catch it on the PR instead.+ goreleaser-check:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5+ with:+ go-version: ${{ env.GO_VERSION }}+ cache: false+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ fetch-depth: 0+ persist-credentials: false+ - uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3+ with:+ distribution: goreleaser+ version: "~> v2"+ args: check+ - uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3+ with:+ distribution: goreleaser+ version: "~> v2"+ args: build --snapshot --clean --single-target+helm-lint:runs-on: ubuntu-lateststeps:diff --git a/.goreleaser.yaml b/.goreleaser.yamlindex db1cbeb3..6a3ed65d 100644--- a/.goreleaser.yaml+++ b/.goreleaser.yaml@@ -60,20 +60,6 @@ builds:- arm64ldflags:- -s -w- - id: sam-box- main: ./cmd/sam-box- binary: sam-box- env:- - CGO_ENABLED=0- goos:- - linux- - windows- - darwin- goarch:- - amd64- - arm64- ldflags:- - -s -w- id: sam-consolemain: ./cmd/sam-consolebinary: sam-console@@ -102,23 +88,6 @@ builds:- arm64ldflags:- -s -w -X github.com/google/sam/internal/version.Version={{ .Tag }}- - id: nano-init- main: .- # nano-init is its own module: it carries a userspace TCP stack, and that- # dependency has no business in the graph every other binary builds from.- dir: ./cmd/nano-init- binary: nano-init- env:- - CGO_ENABLED=0- # linux only: nano-init is PID 1 inside a Linux sandbox — TUN ioctls,- # netlink, namespaces and vsock have no meaning anywhere else.- goos:- - linux- goarch:- - amd64- - arm64- ldflags:- - -s -warchives:- formats:- tar.gz@@ -133,6 +102,3 @@ archives:- goos: windowsformats:- zip- # nano-init only builds for linux (see build id "nano-init" above), so the- # windows and darwin archives intentionally have one fewer binary.- allow_different_binary_count: truediff --git a/charts/sam-mesh/Chart.yaml b/charts/sam-mesh/Chart.yamlindex 59fbb336..c7b90481 100644--- a/charts/sam-mesh/Chart.yaml+++ b/charts/sam-mesh/Chart.yaml@@ -3,4 +3,4 @@ name: sam-meshdescription: A Helm chart for deploying the SAM control plane, router and consoletype: applicationversion: 0.1.0-appVersion: "1.0.0"+appVersion: "0.1.0"diff --git a/install.sh b/install.shindex 82aa3b96..9504c395 100755--- a/install.sh+++ b/install.sh@@ -78,7 +78,7 @@ tar -xzf "${TAR_NAME}"echo "Installing to ${INSTALL_DIR} (may require sudo)..."INSTALLED_BINS=()-for b in sam-one sam-node sam-control-plane sam-router mcp-client sam-box sam-console nano-init; do+for b in sam-one sam-node sam-control-plane sam-router mcp-client sam-console; doif [ -f "$b" ]; thenINSTALLED_BINS+=("$b")fi