We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d755af commit f03b65dCopy full SHA for f03b65d
.github/workflows/ci.yml
@@ -41,15 +41,10 @@ jobs:
41
42
- name: Build and run examples
43
run: |
44
- for pkg in $(go list ./... | grep '/example' || true); do
45
- echo "Building $pkg"
46
- go build -v "$pkg"
47
- BIN=$(basename "$pkg")
48
- # Try to run the binary if built successfully
49
- if [ -f "$BIN" ]; then
50
- echo "Running $BIN"
51
- ./"$BIN"
52
- else
53
- echo "Binary $BIN not found, skipping run."
54
- fi
+ for f in example/*.go; do
+ fname=$(basename "$f" .go)
+ echo "Building $f -> $fname"
+ go build -o "example/$fname" "$f"
+ echo "Running example/$fname"
+ "example/$fname"
55
done
0 commit comments