From 70aad3ac959d1607a39936930cef28964381bd35 Mon Sep 17 00:00:00 2001 From: vanous Date: Wed, 13 Dec 2023 14:49:23 +0100 Subject: [PATCH] Add GitHub CI build --- .github/workflows/build-blender-addon.yaml | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-blender-addon.yaml diff --git a/.github/workflows/build-blender-addon.yaml b/.github/workflows/build-blender-addon.yaml new file mode 100644 index 00000000..4fb57078 --- /dev/null +++ b/.github/workflows/build-blender-addon.yaml @@ -0,0 +1,32 @@ +name: Build Blender addon + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + pip install pygit2 + ls -la + pwd + python --version + echo "REF=${{ github.event.pull_request && github.head_ref || github.ref_name }}" >> $GITHUB_ENV + - name: Build addon + run: | + python scripts/build_release.py github + ls -la + - uses: actions/upload-artifact@v3 + with: + name: blenderDMX_${{ env.REF }}.zip + path: build/ +