Skip to content

BradyAJohnston/setup-blender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-blender

Downloads and installs Blender to path on your GHA runner, so you can just call blender without having to worry about installation.

blender --version

Versions

Versions can be specified with or without the patch version, as well as "daily" for the latest daily alpha builds being worked on.

Examples:

Exmaple workflow which gets blender for 3 different versions on 3 different operating systems, and then uses Blender to print the version to the console:

name: Run Tests

on: 
    push:
      branches: ["main"]
    pull_request:
      branches: ["*"]
    
jobs:
    build:
        runs-on: ${{ matrix.os }}
        strategy:
            max-parallel: 4
            fail-fast: false
            matrix:
              version: ["4.2", "4.3.2", "daily"]
              os: [macos-14, "ubuntu-latest", "windows-latest"]
        steps:
            - uses: actions/checkout@v4
            - name: Install Blender
              uses: bradyajohnston/setup-blender@v3
              with:
                version: ${{ matrix.version }}
            - name: Run tests in Blender
              run: blender --version

About

GHA for installing Blender for running tests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages