Merge pull request #540 from saturday06/dependabot/pip/main/ruff-0.5.7 #453
Workflow file for this run
This file contains 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: extension | |
permissions: {} | |
on: | |
push: | |
tags: | |
- '*_*_*' | |
jobs: | |
extension: | |
runs-on: ubuntu-24.04 | |
env: | |
BLENDER_ARCHIVE_URL: https://mirrors.ocf.berkeley.edu/blender/release/Blender4.2/blender-4.2.0-linux-x64.tar.xz | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Cache archive | |
id: cache-archive | |
uses: actions/cache@v4 | |
with: | |
path: blender.tar.xz | |
key: ${{ env.BLENDER_ARCHIVE_URL }}-archive-1 | |
- name: Download archive | |
if: steps.cache-archive.outputs.cache-hit != 'true' | |
run: curl --fail --location --show-error --retry 5 --retry-all-errors "$BLENDER_ARCHIVE_URL" -o blender.tar.xz || true | |
- name: Build Extension | |
run: | | |
mkdir -p ~/.local/blender | |
if ! tar xf blender.tar.xz -C ~/.local/blender --strip-components=1; then | |
echo "Please upgrade archive URL" | |
exit 0 | |
fi | |
export PATH="$HOME/.local/blender:$PATH" | |
hash -r | |
./tools/build_extension.sh | |
- name: Save Extension | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Extension | |
path: extension_output |