mattermost-community-enterp.../vendor/modernc.org/libc/build_all_targets.sh
Claude ec1f89217a Merge: Complete Mattermost Server with Community Enterprise
Full Mattermost server source with integrated Community Enterprise features.
Includes vendor directory for offline/air-gapped builds.

Structure:
- enterprise-impl/: Enterprise feature implementations
- enterprise-community/: Init files that register implementations
- enterprise/: Bridge imports (community_imports.go)
- vendor/: All dependencies for offline builds

Build (online):
  go build ./cmd/mattermost

Build (offline/air-gapped):
  go build -mod=vendor ./cmd/mattermost

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:59:07 +09:00

78 lines
3.6 KiB
Bash

set -e
for tag in none libc.dmesg libc.membrk libc.memgrind libc.strace libc.memexpvar
do
echo "-tags=$tag"
echo "GOOS=darwin GOARCH=amd64"
GOOS=darwin GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=darwin GOARCH=amd64 go test -tags=$tag -c -o /dev/null
echo "GOOS=darwin GOARCH=arm64"
GOOS=darwin GOARCH=arm64 go build -tags=$tag -v ./...
GOOS=darwin GOARCH=arm64 go test -tags=$tag -c -o /dev/null
#TODO echo "GOOS=freebsd GOARCH=386"
#TODO GOOS=freebsd GOARCH=386 go build -tags=$tag -v ./...
#TODO GOOS=freebsd GOARCH=386 go test -tags=$tag -c -o /dev/null
echo "GOOS=freebsd GOARCH=amd64"
GOOS=freebsd GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=freebsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
echo "GOOS=freebsd GOARCH=arm64"
GOOS=freebsd GOARCH=arm64 go build -tags=$tag -v ./...
GOOS=freebsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null
echo "GOOS=illumos GOARCH=amd64"
GOOS=illumos GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=illumos GOARCH=amd64 go test -tags=$tag -c -o /dev/null
#TODO echo "GOOS=freebsd GOARCH=arm"
#TODO GOOS=freebsd GOARCH=arm go build -tags=$tag -v ./...
#TODO GOOS=freebsd GOARCH=arm go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=386"
GOOS=linux GOARCH=386 go build -tags=$tag -v ./...
GOOS=linux GOARCH=386 go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=amd64"
GOOS=linux GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=linux GOARCH=amd64 go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=arm"
GOOS=linux GOARCH=arm go build -tags=$tag -v ./...
GOOS=linux GOARCH=arm go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=arm64"
GOOS=linux GOARCH=arm64 go build -tags=$tag -v ./...
GOOS=linux GOARCH=arm64 go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=loong64"
GOOS=linux GOARCH=loong64 go build -tags=$tag -v ./...
GOOS=linux GOARCH=loong64 go test -tags=$tag -c -o /dev/null
# echo "GOOS=linux GOARCH=mips64le"
# GOOS=linux GOARCH=mips64le go build -tags=$tag -v ./...
# GOOS=linux GOARCH=mips64le go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=ppc64le"
GOOS=linux GOARCH=ppc64le go build -tags=$tag -v ./...
GOOS=linux GOARCH=ppc64le go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=riscv64"
GOOS=linux GOARCH=riscv64 go build -tags=$tag -v ./...
GOOS=linux GOARCH=riscv64 go test -tags=$tag -c -o /dev/null
echo "GOOS=linux GOARCH=s390x"
GOOS=linux GOARCH=s390x go build -tags=$tag -v ./...
GOOS=linux GOARCH=s390x go test -tags=$tag -c -o /dev/null
echo "GOOS=netbsd GOARCH=amd64"
GOOS=netbsd GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=netbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
echo "GOOS=netbsd GOARCH=arm"
GOOS=netbsd GOARCH=arm go build -tags=$tag -v ./...
GOOS=netbsd GOARCH=arm go test -tags=$tag -c -o /dev/null
echo "GOOS=openbsd GOARCH=386"
GOOS=openbsd GOARCH=386 go build -tags=$tag -v ./...
GOOS=openbsd GOARCH=386 go test -tags=$tag -c -o /dev/null
echo "GOOS=openbsd GOARCH=amd64"
GOOS=openbsd GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=openbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
echo "GOOS=openbsd GOARCH=arm64"
GOOS=openbsd GOARCH=arm64 go build -tags=$tag -v ./...
GOOS=openbsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null
echo "GOOS=windows GOARCH=386"
GOOS=windows GOARCH=386 go build -tags=$tag -v ./...
GOOS=windows GOARCH=386 go test -tags=$tag -c -o /dev/null
echo "GOOS=windows GOARCH=amd64"
GOOS=windows GOARCH=amd64 go build -tags=$tag -v ./...
GOOS=windows GOARCH=amd64 go test -tags=$tag -c -o /dev/null
echo "GOOS=windows GOARCH=arm64"
GOOS=windows GOARCH=arm64 go build -tags=$tag -v ./...
GOOS=windows GOARCH=arm64 go test -tags=$tag -c -o /dev/null
done