|
26 | 26 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
27 | 27 | with: |
28 | 28 | persist-credentials: false |
| 29 | + submodules: recursive |
29 | 30 |
|
30 | 31 | - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
31 | 32 | with: |
|
34 | 35 | - name: Build source distribution |
35 | 36 | run: pipx run build --sdist --outdir dist/ |
36 | 37 |
|
| 38 | + - name: Check sdist size, fail if it exceeds 10 MiB |
| 39 | + run: | |
| 40 | + MAX_SIZE_MB=10 |
| 41 | + SDIST=$(ls dist/*.tar.gz) |
| 42 | + SIZE=$(stat --format=%s "$SDIST") |
| 43 | + SIZE_MB=$(awk "BEGIN {printf \"%.2f\", $SIZE / 1048576}") |
| 44 | + echo "sdist size: ${SIZE_MB} MB" |
| 45 | + if [ "$SIZE" -gt $((MAX_SIZE_MB * 1048576)) ]; then |
| 46 | + echo "::error::sdist is ${SIZE_MB} MB, exceeding the ${MAX_SIZE_MB} MB limit" |
| 47 | + exit 1 |
| 48 | + fi |
| 49 | +
|
37 | 50 | - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 |
38 | 51 | with: |
39 | 52 | name: source_distribution |
|
49 | 62 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
50 | 63 | with: |
51 | 64 | persist-credentials: false |
| 65 | + submodules: recursive |
52 | 66 |
|
53 | 67 | - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 |
54 | 68 | with: |
|
86 | 100 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
87 | 101 | with: |
88 | 102 | persist-credentials: false |
| 103 | + submodules: recursive |
89 | 104 |
|
90 | 105 | - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 |
91 | 106 | with: |
@@ -127,6 +142,7 @@ jobs: |
127 | 142 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
128 | 143 | with: |
129 | 144 | persist-credentials: false |
| 145 | + submodules: recursive |
130 | 146 |
|
131 | 147 | - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 |
132 | 148 | with: |
@@ -169,6 +185,7 @@ jobs: |
169 | 185 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
170 | 186 | with: |
171 | 187 | persist-credentials: false |
| 188 | + submodules: recursive |
172 | 189 |
|
173 | 190 | - uses: pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1 |
174 | 191 | with: |
@@ -205,6 +222,7 @@ jobs: |
205 | 222 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
206 | 223 | with: |
207 | 224 | persist-credentials: false |
| 225 | + submodules: recursive |
208 | 226 |
|
209 | 227 | - uses: pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1 |
210 | 228 | with: |
@@ -241,6 +259,7 @@ jobs: |
241 | 259 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
242 | 260 | with: |
243 | 261 | persist-credentials: false |
| 262 | + submodules: recursive |
244 | 263 |
|
245 | 264 | - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 |
246 | 265 | with: |
@@ -286,6 +305,7 @@ jobs: |
286 | 305 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
287 | 306 | with: |
288 | 307 | persist-credentials: false |
| 308 | + submodules: recursive |
289 | 309 |
|
290 | 310 | - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 |
291 | 311 | with: |
@@ -331,6 +351,7 @@ jobs: |
331 | 351 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
332 | 352 | with: |
333 | 353 | persist-credentials: false |
| 354 | + submodules: recursive |
334 | 355 |
|
335 | 356 | - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 |
336 | 357 | with: |
@@ -364,6 +385,7 @@ jobs: |
364 | 385 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
365 | 386 | with: |
366 | 387 | persist-credentials: false |
| 388 | + submodules: recursive |
367 | 389 |
|
368 | 390 | - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 |
369 | 391 | with: |
|
0 commit comments