-
-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (57 loc) · 2.4 KB
/
Copy pathlinux.yml
File metadata and controls
67 lines (57 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 🐧 Linux Builds
on: [ workflow_call, workflow_dispatch ]
jobs:
build:
name: 🐧 Linux ${{ matrix.arch }}
runs-on: ${{ matrix.runs_on }}
strategy:
fail-fast: false
matrix:
include:
- arch: x64
# runs_on: ubuntu-latest
runs_on: ubuntu-24.04
py_arch: x64
plugin_version: "1.1.4"
blender_version: "5.1.2"
blender_arch: x64
blender_platform: linux-x64
steps:
- name: Checkout
uses: actions/checkout@v5
with:
submodules: recursive
- name: Setup Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
architecture: ${{ matrix.py_arch }} # x64 or arm64
- name: Download Wheels
run: |
mkdir source/wheels
# Optional, fail fast if no native wheel exists for this arch
pip wheel -w source/wheels allosaurus
- name: Create manifest
run: |
cd source
(cat ../blender_manifest_template_linux.toml; echo "wheels = ["; ls -1 wheels | grep -v "$numpy" | sed 's/\(^.*$\)/ "\.\/wheels\/\1",/'; echo "]") > blender_manifest.toml
- name: Setup Blender
run: |
cd ${{ github.workspace }}
BLENDER_ARCHIVE="blender-${{ matrix.blender_version }}-linux-${{ matrix.arch }}.tar.xz"
BLENDER_URL="https://download.blender.org/release/Blender5.1/${BLENDER_ARCHIVE}"
curl -L ${BLENDER_URL} -o ${BLENDER_ARCHIVE}
tar -xf ${BLENDER_ARCHIVE}
mv blender-${{ matrix.blender_version }}-linux-${{ matrix.arch }} blender
- name: Build Extension
run: |
cd ${{ github.workspace }}
mkdir extension
./blender/blender --command extension build --source-dir source --output-filepath "extension/parrotLipsync-${{ matrix.plugin_version }}-linux-${{ matrix.arch }}.zip"
cd extension
unzip "parrotLipsync-${{ matrix.plugin_version }}-linux-${{ matrix.arch }}.zip" -d "parrotLipsync-${{ matrix.plugin_version }}-linux-${{ matrix.arch }}"
- name: Upload Package
uses: actions/upload-artifact@v6
with:
name: parrotLipsync-${{ matrix.plugin_version }}-linux-${{ matrix.arch }}-blender_${{ matrix.blender_version }}
path: "extension/parrotLipsync-${{ matrix.plugin_version }}-linux-${{ matrix.arch }}"