|
56 | 56 | name: Prepare example list |
57 | 57 | runs-on: ubuntu-latest |
58 | 58 | outputs: |
59 | | - examples: ${{ steps.env.outputs.examples }} |
| 59 | + examples1: ${{ steps.env.outputs.examples1 }} |
| 60 | + examples2: ${{ steps.env.outputs.examples2 }} |
60 | 61 | steps: |
61 | 62 | - name: Checkout Bevy |
62 | 63 | uses: actions/checkout@v4 |
|
69 | 70 | - name: Prepare example list |
70 | 71 | id: env |
71 | 72 | run: | |
72 | | - example_list=`toml get Cargo.toml example | jq -c '[.[] | .name]'` |
73 | | - echo "examples=$example_list" >> $GITHUB_OUTPUT |
| 73 | + example_list=`toml get Cargo.toml example | jq -c '[.[] | .name][:256]'` |
| 74 | + echo "examples1=$example_list" >> $GITHUB_OUTPUT |
| 75 | + echo $example_list |
| 76 | + example_list=`toml get Cargo.toml example | jq -c '[.[] | .name][256:]'` |
| 77 | + echo "examples2=$example_list" >> $GITHUB_OUTPUT |
74 | 78 | echo $example_list |
75 | 79 |
|
76 | 80 | # owner-check: |
@@ -291,14 +295,46 @@ jobs: |
291 | 295 | # run: | |
292 | 296 | # cargo build --no-default-features --features ${{ matrix.feature }} |
293 | 297 |
|
294 | | - example-doc-check: |
| 298 | + example-doc-check1: |
| 299 | + name: Example Documentation |
| 300 | + needs: [list-examples] |
| 301 | + runs-on: ubuntu-latest |
| 302 | + strategy: |
| 303 | + fail-fast: false |
| 304 | + matrix: |
| 305 | + example: ${{ fromJSON(needs.list-examples.outputs.examples1) }} |
| 306 | + steps: |
| 307 | + - name: Checkout Releasability |
| 308 | + uses: actions/checkout@v4 |
| 309 | + with: |
| 310 | + directory: releasability |
| 311 | + - name: Checkout Bevy |
| 312 | + uses: actions/checkout@v4 |
| 313 | + with: |
| 314 | + repository: bevyengine/bevy |
| 315 | + ref: main |
| 316 | + - name: Setup Rust |
| 317 | + uses: dtolnay/rust-toolchain@nightly |
| 318 | + - name: Install Bevy dependencies |
| 319 | + run: | |
| 320 | + sudo apt-get update; |
| 321 | + DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -yq libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev |
| 322 | + - name: Limit to one scrapped example |
| 323 | + run: | |
| 324 | + pip install tomli-w |
| 325 | + python releasability/limit-scrapped-examples.py ${{ matrix.example }} |
| 326 | + - name: Document with scrapping example |
| 327 | + run: | |
| 328 | + cargo +nightly doc -Zunstable-options -Zrustdoc-scrape-examples --no-deps |
| 329 | +
|
| 330 | + example-doc-check2: |
295 | 331 | name: Example Documentation |
296 | 332 | needs: [list-examples] |
297 | 333 | runs-on: ubuntu-latest |
298 | 334 | strategy: |
299 | 335 | fail-fast: false |
300 | 336 | matrix: |
301 | | - example: ${{ fromJSON(needs.list-examples.outputs.examples) }} |
| 337 | + example: ${{ fromJSON(needs.list-examples.outputs.examples2) }} |
302 | 338 | steps: |
303 | 339 | - name: Checkout Releasability |
304 | 340 | uses: actions/checkout@v4 |
|
0 commit comments