@@ -43,7 +43,26 @@ concurrency:
4343 cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
4444
4545jobs :
46+ seed-build-script :
47+ runs-on : ubuntu-latest
48+ name : Pre-seed static binaries' versions
49+ steps :
50+ - env :
51+ GITHUB_TOKEN : ${{ github.token }}
52+ run : >-
53+ gh release download
54+ -R cpp-linter/clang-tools-static-binaries
55+ --pattern versions.json
56+ --output versions.json
57+ - name : Upload versions.json
58+ uses : actions/upload-artifact@v7
59+ with :
60+ name : static-binary-versions
61+ path : versions.json
62+ if-no-files-found : error
63+
4664 linux :
65+ needs : [seed-build-script]
4766 runs-on : ${{ matrix.platform.runner }}
4867 strategy :
4968 matrix :
6786 - uses : actions/setup-python@v6
6887 with :
6988 python-version : ' 3.x'
70-
89+ - name : Restore build script seed
90+ uses : actions/download-artifact@v8
91+ with :
92+ name : static-binary-versions
93+ path : clang-installer
7194 - name : Build wheels
7295 uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
7396 with :
@@ -104,6 +127,7 @@ jobs:
104127 path : dist/*
105128
106129 windows :
130+ needs : [seed-build-script]
107131 runs-on : ${{ matrix.platform.runner }}
108132 strategy :
109133 matrix :
@@ -120,6 +144,11 @@ jobs:
120144 with :
121145 python-version : ' 3.x'
122146 architecture : ${{ matrix.platform.target }}
147+ - name : Restore build script seed
148+ uses : actions/download-artifact@v8
149+ with :
150+ name : static-binary-versions
151+ path : clang-installer
123152 - name : Build wheels
124153 uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
125154 with :
@@ -133,6 +162,7 @@ jobs:
133162 path : dist/*
134163
135164 macos :
165+ needs : [seed-build-script]
136166 runs-on : ${{ matrix.platform.runner }}
137167 strategy :
138168 fail-fast : false
@@ -149,6 +179,11 @@ jobs:
149179 - uses : actions/setup-python@v6
150180 with :
151181 python-version : ' 3.x'
182+ - name : Restore build script seed
183+ uses : actions/download-artifact@v8
184+ with :
185+ name : static-binary-versions
186+ path : clang-installer
152187 - name : Build wheels
153188 uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
154189 with :
0 commit comments