Skip to content

CI: sudo for apt-get #10

CI: sudo for apt-get

CI: sudo for apt-get #10

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Howetuft
#
# SPDX-License-Identifier: Apache-2.0
name: BlendLuxCore Blender Bundles
on:
pull_request:
push:
branches:
- for_blender_4.2_wheels
workflow_dispatch:
release:
types:
- published
jobs:
build_bundles:
name: Build bundles
runs-on: ubuntu-latest
env:
WHEELS_VERSION: 2.9a1.post5
steps:
- name: Checkout main repository
uses: actions/checkout@v4
with:
path: BlendLuxCore
- name: Prepare Blender install
run: |
sudo apt-get update
sudo apt-get install -y libxxf86vm1 libxfixes3 libxi6 libxkbcommon0 libgl1
- uses: moguri/setup-blender@v1
with:
blender-version: '4.2.4'
- run: blender --version
- name: Retrieve wheels
shell: bash
run: |
platforms=(
macosx_11_0_arm64
macosx_10_13_x86_64
manylinux_2_28_x86_64
win_amd64
)
dest="${{ github.workspace }}/BlendLuxCore/wheels"
for platform in "${platforms[@]}"
do
echo "Downloading pyluxcore for ${platform} - Python 3.11"
pip download "pyluxcore==${WHEELS_VERSION}" \
--no-deps \
--dest ${dest} \
--only-binary=:all: \
--python-version=3.11 \
--platform=$platform
done
# This one is for linux distro that would recompile Blender against
# 3.12 (like ArchLinux)
echo "Downloading pyluxcore for ${platform} - Python 3.12"
pip download "pyluxcore==${WHEELS_VERSION}" \
--no-deps \
--dest ${dest} \
--only-binary=:all: \
--python-version=3.12 \
--platform=manylinux_2_28_x86_64
- name: Package bundles
shell: bash
run: |
echo "${{ github.workspace }}"
blender --command extension build \
--split-platform \
--source-dir "${{ github.workspace }}/BlendLuxCore"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: "${{ github.workspace }}/BlendLuxCore-*.zip"