fix-build #4

Merged
chris merged 10 commits from fix-build into master 2026-06-20 05:51:53 +02:00
Showing only changes of commit 65ff323d50 - Show all commits

View File

@ -100,8 +100,10 @@ jobs:
if-no-files-found: error if-no-files-found: error
# Release flow only: merges all built modules into one modules/ folder, wraps it # Release flow only: merges all built modules into one modules/ folder, wraps it
# in a single repo-named top folder alongside selftest.sh, zips it and attaches # in a single repo-named top folder alongside the helper scripts (selftest.sh,
# it to the Gitea release for the pushed tag. Skipped entirely on pull requests. # launch.sh) and the iecpoc Python frontend (so launch.sh can pip-install it on
# the Pi), zips it and attaches it to the Gitea release for the pushed tag.
# Skipped entirely on pull requests.
release: release:
needs: build needs: build
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
@ -123,7 +125,14 @@ jobs:
root="package/$repo" root="package/$repo"
mkdir -p "$root" mkdir -p "$root"
cp -r dist/modules "$root"/ # modules/iec_listener_<kernel_version>.ko cp -r dist/modules "$root"/ # modules/iec_listener_<kernel_version>.ko
cp kernel/selftest.sh "$root"/ # selftest.sh only at the package root cp kernel/selftest.sh "$root"/ # one-shot hardware self-test
cp launch.sh "$root"/ # load module -> run frontend -> unload
# iecpoc Python frontend + its packaging metadata. launch.sh pip-installs
# this on the Pi; the build reads pyproject.toml's readme = "README.md",
# so README.md must travel with it. __pycache__ is stripped to stay clean.
cp pyproject.toml README.md "$root"/
cp -r iecpoc "$root"/
find "$root/iecpoc" -name __pycache__ -type d -prune -exec rm -rf {} +
(cd package && zip -r "../${repo}-${{ github.ref_name }}.zip" "$repo") (cd package && zip -r "../${repo}-${{ github.ref_name }}.zip" "$repo")
- name: Publish to Gitea release - name: Publish to Gitea release