Skip to content

Commit cd795c8

Browse files
committed
perf(ci): serialise native build runs to protect the sticky-disk deps cache
1 parent a93795e commit cd795c8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ jobs:
7979
needs: changes
8080
if: needs.changes.outputs.code-changed == 'true'
8181
name: ${{ matrix.name }}
82+
# Each native build shares one per-job, per-arch Blacksmith sticky disk
83+
# across every run. Overlapping runs clone the same snapshot and re-commit
84+
# wholesale, so a later run overwrites the deps another run just pinned and
85+
# both rebuild from scratch. Serialise runs of the same matrix entry (queue,
86+
# don't cancel) so the pinned deps survive and stay warm. The key is per
87+
# matrix.name because each entry already has its own disk.
88+
concurrency:
89+
group: build-native-${{ matrix.name }}
90+
cancel-in-progress: false
8291
permissions:
8392
actions: write
8493
contents: read

0 commit comments

Comments
 (0)