mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-19 06:14:43 +08:00
16 lines
365 B
Bash
Executable File
16 lines
365 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# this script builds all go packages in the current directory
|
|
|
|
packages=$(go list ./pkg/...)
|
|
for package in $packages; do
|
|
echo "building $package"
|
|
go build -o /dev/null "$package" || exit 1
|
|
done
|
|
|
|
examples=$(go list ./examples/...)
|
|
for ex in $examples; do
|
|
echo "building example $ex"
|
|
go build -o /dev/null "$ex" || exit 1
|
|
done
|