Merge pull request 'Adds GitHub Actions workflow for building wheels and updates pyproject.toml for plugin requirements' (#1) from deb into main

Reviewed-on: #1
This commit is contained in:
2025-04-26 21:19:19 +02:00
2 changed files with 50 additions and 3 deletions

46
.github/workflows/build-deb.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: Build Wheels
on:
workflow_dispatch: # <-- Nur manuell über GitHub auslösbar
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout Repository
uses: actions/checkout@v4
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12" # Deine Python-Version anpassen
- name: 📦 Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH # Poetry ins PATH einfügen
- name: 🔧 Install Project Dependencies
run: |
poetry install
- name: 📝 Export requirements.txt
run: |
poetry export --without-hashes --format=requirements.txt > requirements.txt
- name: 📥 Download wheels for dependencies
run: |
mkdir -p dist/wheels
pip install wheel
pip download --only-binary=:all: --dest dist/wheels -r requirements.txt
- name: 🛠 Build own wheel
run: |
poetry build -f wheel
- name: 📤 Upload dist/ artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

View File

@@ -5,9 +5,7 @@ description = "Flexible FPGA Build System"
authors = ["0xMax42 <Mail@0xMax42.io>"] authors = ["0xMax42 <Mail@0xMax42.io>"]
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"
packages = [ packages = [{ include = "hdlbuild", from = "src" }]
{ include = "hdlbuild", from = "src" }
]
[tool.poetry.scripts] [tool.poetry.scripts]
hdlbuild = "hdlbuild.cli:main" hdlbuild = "hdlbuild.cli:main"
@@ -20,6 +18,9 @@ pydantic = "^2.11.3"
rich = "^14.0.0" rich = "^14.0.0"
gitpython = "^3.1.44" gitpython = "^3.1.44"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
[build-system] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]