Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.1 release #17

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 65 additions & 63 deletions .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,74 @@
name: Package Release
on:
push:
branches:
- "releases/**"
workflow_dispatch:
push:
branches:
- "releases/**"
workflow_dispatch:

jobs:
package-release:
strategy:
matrix:
platform:
- filename: cpu-win64
os: windows-latest
requirements: cpu.txt
- filename: cuda-win64
os: windows-latest
requirements: cuda.txt
package-release:
strategy:
matrix:
platform:
- filename: cpu-win64
os: windows-latest
requirements: cpu.txt
args: ""

- filename: cpu-macos-arm
os: macos-latest
requirements: cpu.txt
- filename: cuda-macos-arm
os: macos-latest
requirements: cuda.txt
- filename: cuda-win64
os: windows-latest
requirements: cuda.txt
args: "--only-binary=llama_cpp_python"

- filename: cpu-macos-x86
os: macos-13
requirements: cpu.txt
- filename: cuda-macos-x86
os: macos-13
requirements: cuda.txt
- filename: cpu-macos-arm
os: macos-latest
requirements: cpu.txt
args: ""

- filename: cpu-linux
os: ubuntu-latest
requirements: cpu.txt
- filename: cuda-linux
os: ubuntu-latest
requirements: cuda.txt
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: meshgen

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- filename: cpu-macos-x86
os: macos-13
requirements: cpu.txt
args: ""

- name: Upgrade pip
shell: bash
run: "python -m pip install --upgrade setuptools pip"
- filename: cpu-linux
os: ubuntu-latest
requirements: cpu.txt
args: ""

- name: Install dependencies
shell: bash
run: "python -m pip install -r requirements/${{ matrix.platform.requirements }} --no-cache-dir --target .python_dependencies"
working-directory: meshgen

- name: Archive release
uses: thedoctor0/zip-release@main
with:
type: zip
filename: meshgen-${{ matrix.platform.filename }}.zip
exclusions: '*.git*'

- name: Archive and upload artifact
uses: actions/upload-artifact@v4
with:
name: meshgen-${{ matrix.platform.filename }}
path: meshgen-${{ matrix.platform.filename }}.zip
- filename: cuda-linux
os: ubuntu-latest
requirements: cuda.txt
args: "--only-binary=llama_cpp_python"
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: meshgen

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Upgrade pip
shell: bash
run: "python -m pip install --upgrade setuptools pip"

- name: Install dependencies
shell: bash
run: "python -m pip install -r requirements/${{ matrix.platform.requirements }} ${{ matrix.platform.args }} --no-cache-dir --target .python_dependencies"
working-directory: meshgen

- name: Archive release
uses: thedoctor0/zip-release@main
with:
type: zip
filename: meshgen-${{ matrix.platform.filename }}.zip
exclusions: "*.git*"

- name: Archive and upload artifact
uses: actions/upload-artifact@v4
with:
name: meshgen-${{ matrix.platform.filename }}
path: meshgen-${{ matrix.platform.filename }}.zip
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "MeshGen",
"description": "A Blender addon for generating meshes with AI",
"author": "Hugging Face",
"version": (0, 3, 0),
"version": (0, 3, 1),
"blender": (4, 1, 0),
"category": "Mesh",
"support": "COMMUNITY",
Expand Down
3 changes: 2 additions & 1 deletion requirements/cpu.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
llama_cpp_python==0.2.90

huggingface_hub
ollama
ollama
3 changes: 2 additions & 1 deletion requirements/cuda.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu121
llama_cpp_python==0.2.90

huggingface_hub
ollama
ollama
Loading