feat(objets): on peut poser dessus, la hauteur ne s'etire pas, et tou… #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| - '.github/FUNDING.yml' | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| # The add-on declares blender_version_min 4.2.0, so both ends of the | |
| # supported range are exercised. | |
| BLENDER_DOWNLOAD: https://download.blender.org/release | |
| jobs: | |
| test: | |
| name: Blender ${{ matrix.blender }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - blender: '5.2.0' | |
| series: 'Blender5.2' | |
| - blender: '4.2.9' | |
| series: 'Blender4.2' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Blender | |
| id: cache-blender | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/blender | |
| key: blender-${{ matrix.blender }}-linux-x64 | |
| - name: Download Blender | |
| if: steps.cache-blender.outputs.cache-hit != 'true' | |
| run: | | |
| set -euo pipefail | |
| archive="blender-${{ matrix.blender }}-linux-x64.tar.xz" | |
| url="${BLENDER_DOWNLOAD}/${{ matrix.series }}/${archive}" | |
| echo "Fetching ${url}" | |
| curl -fsSL -o "${archive}" "${url}" | |
| mkdir -p ~/blender | |
| tar -xf "${archive}" -C ~/blender --strip-components=1 | |
| - name: Report version | |
| run: ~/blender/blender --version | |
| - name: Headless suite | |
| run: > | |
| ~/blender/blender --background --factory-startup | |
| --python tests/test_headless.py | |
| - name: Translation suite | |
| run: > | |
| ~/blender/blender --background --factory-startup | |
| --python tests/test_i18n.py | |
| - name: UI contract suite | |
| run: > | |
| ~/blender/blender --background --factory-startup | |
| --python tests/test_ui_contract.py | |
| package: | |
| name: Package the extension | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Blender | |
| id: cache-blender | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/blender | |
| key: blender-5.2.0-linux-x64 | |
| - name: Download Blender | |
| if: steps.cache-blender.outputs.cache-hit != 'true' | |
| run: | | |
| set -euo pipefail | |
| archive="blender-5.2.0-linux-x64.tar.xz" | |
| curl -fsSL -o "${archive}" "${BLENDER_DOWNLOAD}/Blender5.2/${archive}" | |
| mkdir -p ~/blender | |
| tar -xf "${archive}" -C ~/blender --strip-components=1 | |
| - name: Build | |
| run: | | |
| set -euo pipefail | |
| mkdir -p dist | |
| ~/blender/blender --command extension build \ | |
| --source-dir paraforge --output-dir dist | |
| ls -l dist | |
| - name: Upload the build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: paraforge-extension | |
| path: dist/*.zip | |
| if-no-files-found: error | |
| retention-days: 14 |