Skip to content
Merged
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
69 changes: 66 additions & 3 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,29 @@ jobs:
- name: Install build dependencies
run: uv pip install build setuptools_scm

- name: Clean workspace (force ignore dirty)
shell: bash
run: |
git reset --hard HEAD
git clean -fd
rm -rf openviking/_version.py openviking.egg-info
# Ignore uv.lock changes to avoid dirty state in setuptools_scm
git update-index --assume-unchanged uv.lock || true

- name: Debug Git and SCM
shell: bash
run: |
echo "=== Git Describe ==="
git describe --tags --long --dirty --always
echo "=== Setuptools SCM Version ==="
uv run --frozen python -m setuptools_scm
echo "=== Git Status (Ignored included) ==="
git status --ignored
echo "=== Check openviking/_version.py ==="
if [ -f openviking/_version.py ]; then cat openviking/_version.py; else echo "Not found"; fi

- name: Build sdist
run: uv run python -m build --sdist
run: uv run --frozen python -m build --sdist

- name: Store the distribution packages
uses: actions/upload-artifact@v6
Expand Down Expand Up @@ -184,8 +205,29 @@ jobs:
- name: Install build dependencies
run: uv pip install setuptools setuptools_scm pybind11 cmake wheel build

- name: Clean workspace (force ignore dirty)
shell: bash
run: |
git reset --hard HEAD
git clean -fd
rm -rf openviking/_version.py openviking.egg-info
# Ignore uv.lock changes to avoid dirty state in setuptools_scm
git update-index --assume-unchanged uv.lock || true

- name: Debug Git and SCM
shell: bash
run: |
echo "=== Git Describe ==="
git describe --tags --long --dirty --always
echo "=== Setuptools SCM Version ==="
uv run --frozen python -m setuptools_scm
echo "=== Git Status (Ignored included) ==="
git status --ignored
echo "=== Check openviking/_version.py ==="
if [ -f openviking/_version.py ]; then cat openviking/_version.py; else echo "Not found"; fi

- name: Build package (Wheel Only)
run: uv run python -m build --wheel
run: uv run --frozen python -m build --wheel

- name: Install patchelf (Linux)
run: |
Expand Down Expand Up @@ -277,8 +319,29 @@ jobs:
- name: Install build dependencies
run: uv pip install setuptools setuptools_scm pybind11 cmake wheel build

- name: Clean workspace (force ignore dirty)
shell: bash
run: |
git reset --hard HEAD
git clean -fd
rm -rf openviking/_version.py openviking.egg-info
# Ignore uv.lock changes to avoid dirty state in setuptools_scm
git update-index --assume-unchanged uv.lock || true

- name: Debug Git and SCM
shell: bash
run: |
echo "=== Git Describe ==="
git describe --tags --long --dirty --always
echo "=== Setuptools SCM Version ==="
uv run --frozen python -m setuptools_scm
echo "=== Git Status (Ignored included) ==="
git status --ignored
echo "=== Check openviking/_version.py ==="
if [ -f openviking/_version.py ]; then cat openviking/_version.py; else echo "Not found"; fi

- name: Build package (Wheel Only)
run: uv run python -m build --wheel
run: uv run --frozen python -m build --wheel

- name: Store the distribution packages
uses: actions/upload-artifact@v6
Expand Down
Loading