diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index 51aed22..1312232 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -10,10 +10,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: install run: | sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile - make install + make install LIBVERSION=${CI_COMMIT_TAG} sh maketestenv.sh - name: Run tests run: | diff --git a/Makefile b/Makefile index 22b0a3a..0b94eb1 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include /ioc/tools/driver.makefile MODULE=ePowerSwitch - +LIBVERSION := $(shell git describe --tags --abbrev=0 2>/dev/null || echo "0.0.1") BUILDCLASSES=Linux EPICS_VERSIONS=7.0.7 ARCH_FILTER=RHEL%