-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (52 loc) · 1.49 KB
/
build_bundle.yml
File metadata and controls
64 lines (52 loc) · 1.49 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
# SPDX-FileCopyrightText: 2025 Howetuft, Johannes Hinrichs (CodeFHD)
#
# SPDX-License-Identifier: Apache-2.0
name: BlendLuxHelper Build Bundle
on:
pull_request:
inputs:
build_type:
required: false
type: string
default: "Latest"
workflow_call:
inputs:
build_type:
required: true
type: string
default: "Latest"
jobs:
build_bundle:
name: Build bundle
runs-on: ubuntu-latest
steps:
- name: Checkout main repository
uses: actions/checkout@v4
- name: Prepare Blender install
uses: gerlero/apt-install@v1
with:
packages: libxxf86vm1 libxfixes3 libxi6 libxkbcommon0 libgl1
- name: Prepare Python
run: touch requirements.txt
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up Blender
uses: moguri/setup-blender@v1
with:
blender-version: '4.2.8'
- name: Set up cmake
uses: lukka/get-cmake@latest
- name: Package bundle
shell: bash
run: |
build_dir="${{ github.workspace }}/build"
mkdir ${build_dir}
cmake -B ${build_dir} -S . -DCMAKE_BUILD_TYPE=${{ inputs.build_type }}
cmake --build ${build_dir}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "BlendLuxHelper"
path: "${{ github.workspace }}/build/out/BlendLuxHelper-*.zip"