Skip to content

Commit b860324

Browse files
committed
Optimize Cirrus CI not to trigger on doc changes
1 parent 8b02667 commit b860324

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.cirrus.star

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ def main(ctx):
55
{
66
"name": "FreeBSD Build and Test",
77
"only_if": "$CIRRUS_BUILD_SOURCE == 'api'",
8+
"skip": "!changesInclude('.cirrus.star', '**.rs', '**Cargo.toml', '**Cargo.lock', '.github/workflows/main.yaml', '.cargo/**', 'src/**', 'tests/**')",
89
"freebsd_instance": {
910
"image_family": FREEBSD_IMAGE
1011
},

.github/scripts/wait-cirrus.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ while [ $ELAPSED -lt $TIMEOUT ]; do
3737
echo "✓ Build completed successfully!"
3838
exit 0
3939
;;
40+
SKIPPED)
41+
echo "○ Build was skipped (no relevant file changes)"
42+
exit 0
43+
;;
4044
FAILED)
4145
echo "✗ Build failed"
4246
exit 1

0 commit comments

Comments
 (0)