Skip to content

Commit

Permalink
test: cache directories
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgold authored Nov 29, 2023
1 parent 39fff95 commit ddf098a
Showing 1 changed file with 50 additions and 23 deletions.
73 changes: 50 additions & 23 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,33 @@ jobs:
run: |
brew install cmake subversion
- name: Cache Blender dependencies
uses: actions/cache@v2
with:
path: |
./lib
key: ${{ runner.os }}-blender-deps-${{ github.sha }}
restore-keys: |
${{ runner.os }}-blender-deps-
# - name: Install Cuda Toolkit
# uses: Jimver/[email protected]
# id: cuda-toolkit
# with:
# cuda: '12.1.0'


- name: Cache build files (for testing only)
uses: actions/cache@v2
with:
path: |
./build_linux_bpy
key: ${{ runner.os }}-blender-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-blender-build-
- name: Build Blender
run: |
cd ./blender
Expand All @@ -58,31 +85,31 @@ jobs:
limit-access-to-users: michaelgold


- name: Install Blender
run: |
cd ./blender
echo "SITE_PACKAGES=`python -c 'import site; print(site.getsitepackages()[0])'`" >> $GITHUB_ENV
cp -r ./build_macos_bpy/bin/bpy $SITE_PACKAGES
# - name: Install Blender
# run: |
# cd ./blender
# echo "SITE_PACKAGES=`python -c 'import site; print(site.getsitepackages()[0])'`" >> $GITHUB_ENV
# cp -r ./build_macos_bpy/bin/bpy $SITE_PACKAGES

- name: Install docs prereqs and generate API Docs
run: |
pip install bpystubgen
cd ./blender
python ./doc/python_api/sphinx_doc_gen.py -- --output=../python_api
python -m bpystubgen ../python_api/sphinx-in ../python_api/output
# - name: Install docs prereqs and generate API Docs
# run: |
# pip install bpystubgen
# cd ./blender
# python ./doc/python_api/sphinx_doc_gen.py -- --output=../python_api
# python -m bpystubgen ../python_api/sphinx-in ../python_api/output

- name: Copy BPY Stubs to bin folder
run: |
cp -R ./python_api/output/* ./build_macos_bpy/bin/
# - name: Copy BPY Stubs to bin folder
# run: |
# cp -R ./python_api/output/* ./build_macos_bpy/bin/


- name: Make Wheel
run: |
python ./blender/build_files/utils/make_bpy_wheel.py ./build_macos_bpy/bin/
# - name: Make Wheel
# run: |
# python ./blender/build_files/utils/make_bpy_wheel.py ./build_macos_bpy/bin/

- name: Upload Wheel as Artifact
uses: actions/upload-artifact@v2
with:
name: bpy-macos
path: |
./build_macos_bpy/bin/*.whl
# - name: Upload Wheel as Artifact
# uses: actions/upload-artifact@v2
# with:
# name: bpy-macos
# path: |
# ./build_macos_bpy/bin/*.whl

0 comments on commit ddf098a

Please sign in to comment.