Skip to content

Commit

Permalink
change build test to use setup-blender action
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Dec 31, 2024
1 parent 0234acb commit e5519c3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: macos-14
strategy:
matrix:
version: [4.2]
version: [4.2, 4.3]
env:
ADDON_NAME: molecularnodes
steps:
Expand All @@ -22,16 +22,12 @@ jobs:
with:
file: '${{ env.ADDON_NAME }}/blender_manifest.toml'
field: 'version'
- name: Test in Blender MacOS ARM
run: |
curl -L -o blender.dmg https://download.blender.org/release/Blender${{ matrix.version }}/blender-${{ matrix.version }}.0-macos-arm64.dmg
hdiutil attach blender.dmg
cp -R /Volumes/Blender/Blender.app /Applications/
hdiutil detach /Volumes/Blender
/Applications/Blender.app/Contents/MacOS/Blender --version
- uses: BradyAJohnston/setup-blender@v2
with:
version: ${{ matrix.version }}
- name: Build extension
run: |
/Applications/Blender.app/Contents/MacOS/Blender -b -P build.py
blender -b -P build.py
mkdir artifact
mv ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}-*.zip ./artifact/.
- name: Archive addon
Expand Down

0 comments on commit e5519c3

Please sign in to comment.