@@ -44,22 +44,8 @@ concurrency:
4444
4545jobs :
4646 seed-build-script :
47- runs-on : ubuntu-latest
4847 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
48+ uses : ./.github/workflows/pre-seed-versions.yml
6349
6450 linux :
6551 needs : [seed-build-script]
@@ -93,31 +79,18 @@ jobs:
9379 - name : Restore build script seed
9480 uses : actions/download-artifact@v8
9581 with :
96- name : static-binary-versions
82+ name : ${{ needs.seed-build-script.outputs.artifact-name }}
9783 path : clang-tools-manager
9884 - name : Build wheels
9985 uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
10086 with :
10187 target : ${{ matrix.platform.target }}
102- # Use the zig toolchain for all targets except ppc64le.
103- # Note, this is meant to avoid build errors in aws-lc-sys crate, which compiles C code.
88+ # Use the zig toolchain to avoid build errors in aws-lc-sys crate, which compiles C code.
10489 args : >-
10590 --release --out dist --find-interpreter --zig
10691 # avoid cache-poisoning potential for actually distributed builds
10792 sccache : ${{ startsWith(github.ref, 'refs/tags') && 'false' || 'true' }}
10893 manylinux : ' auto'
109- # before-script-linux: |
110- # case "${{ matrix.platform.target }}" in
111- # ppc64le)
112- # apt-get update
113- # apt-get install -y \
114- # pkg-config \
115- # gcc-powerpc64le-linux-gnu \
116- # g++-powerpc64le-linux-gnu \
117- # binutils-powerpc64le-linux-gnu \
118- # libc6-dev-ppc64el-cross
119- # ;;
120- # esac
12194 - name : Upload wheels
12295 uses : actions/upload-artifact@v7
12396 with :
@@ -145,7 +118,7 @@ jobs:
145118 - name : Restore build script seed
146119 uses : actions/download-artifact@v8
147120 with :
148- name : static-binary-versions
121+ name : ${{ needs.seed-build-script.outputs.artifact-name }}
149122 path : clang-tools-manager
150123 - name : Build wheels
151124 uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
@@ -180,7 +153,7 @@ jobs:
180153 - name : Restore build script seed
181154 uses : actions/download-artifact@v8
182155 with :
183- name : static-binary-versions
156+ name : ${{ needs.seed-build-script.outputs.artifact-name }}
184157 path : clang-tools-manager
185158 - name : Build wheels
186159 uses : PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
0 commit comments