Skip to content

Commit c089180

Browse files
arman-bdclaude
andcommitted
ci: force rebuild of vendor dependencies on all platforms
This commit changes the CI cache strategy to always rebuild vendor dependencies instead of relying on cached artifacts. This ensures: 1. No cross-platform contamination from cached directories 2. Fresh builds with correct platform-specific assembly files 3. Consistent build environment across all CI runs Changes: - Bump cache version from v9 to v10 to invalidate old caches - Remove conditional build steps (always build vendors) - Update restore-keys to match exact hash (no fallback to old caches) - Apply to Windows, Linux, and macOS workflows This fixes issues where: - Linux was getting macOS BoringSSL assembly files - Windows couldn't find ssl.lib due to corrupted cache - Builds were failing with platform detection errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5fa4d8f commit c089180

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/_build_linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
uses: actions/cache/restore@v4
3434
with:
3535
path: vendor
36-
key: vendor-linux-manylinux-${{ hashFiles('scripts/linux/setup_vendors.sh') }}-v9
36+
key: vendor-linux-manylinux-${{ hashFiles('scripts/linux/setup_vendors.sh') }}-v10
3737
restore-keys: |
38-
vendor-linux-manylinux-
38+
vendor-linux-manylinux-${{ hashFiles('scripts/linux/setup_vendors.sh') }}-v10
3939
4040
# Build wheels with cibuildwheel (handles manylinux containers)
4141
# The vendor directory is mounted into the container automatically
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/cache/save@v4
5353
with:
5454
path: vendor
55-
key: vendor-linux-manylinux-${{ hashFiles('scripts/linux/setup_vendors.sh') }}-v9
55+
key: vendor-linux-manylinux-${{ hashFiles('scripts/linux/setup_vendors.sh') }}-v10
5656

5757
# Setup Python versions for testing
5858
- name: Setup Python versions

.github/workflows/_build_macos.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ jobs:
3737
uses: actions/cache/restore@v4
3838
with:
3939
path: vendor
40-
key: vendor-macos-${{ hashFiles('scripts/darwin/setup_vendors.sh') }}-v9
40+
key: vendor-macos-${{ hashFiles('scripts/darwin/setup_vendors.sh') }}-v10
4141
restore-keys: |
42-
vendor-macos-
42+
vendor-macos-${{ hashFiles('scripts/darwin/setup_vendors.sh') }}-v10
4343
44-
# Build vendor dependencies if not cached
44+
# Build vendor dependencies (always build to ensure clean state)
4545
- name: Build vendor dependencies
46-
if: steps.cache-vendor.outputs.cache-hit != 'true'
4746
run: |
4847
bash scripts/darwin/setup_vendors.sh
4948
@@ -53,7 +52,7 @@ jobs:
5352
uses: actions/cache/save@v4
5453
with:
5554
path: vendor
56-
key: vendor-macos-${{ hashFiles('scripts/darwin/setup_vendors.sh') }}-v9
55+
key: vendor-macos-${{ hashFiles('scripts/darwin/setup_vendors.sh') }}-v10
5756

5857
# Verify vendor build
5958
- name: Verify vendor build

.github/workflows/_build_windows.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ jobs:
3838
uses: actions/cache/restore@v4
3939
with:
4040
path: vendor
41-
key: vendor-windows-${{ hashFiles('scripts/windows/setup_vendors.sh') }}-v9
41+
key: vendor-windows-${{ hashFiles('scripts/windows/setup_vendors.sh') }}-v10
4242
restore-keys: |
43-
vendor-windows-
43+
vendor-windows-${{ hashFiles('scripts/windows/setup_vendors.sh') }}-v10
4444
45-
# Build vendor dependencies if not cached
45+
# Build vendor dependencies (always build to ensure clean state)
4646
- name: Build vendor dependencies
47-
if: steps.cache-vendor.outputs.cache-hit != 'true'
4847
run: |
4948
bash scripts/windows/setup_vendors.sh
5049
shell: bash
@@ -55,7 +54,7 @@ jobs:
5554
uses: actions/cache/save@v4
5655
with:
5756
path: vendor
58-
key: vendor-windows-${{ hashFiles('scripts/windows/setup_vendors.sh') }}-v9
57+
key: vendor-windows-${{ hashFiles('scripts/windows/setup_vendors.sh') }}-v10
5958

6059
# Verify vendor build
6160
- name: Verify vendor build

0 commit comments

Comments
 (0)