Skip to content

Commit d3bb74c

Browse files
committed
extract UMF version form git describe
1 parent 30fada6 commit d3bb74c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/reusable_basic.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ permissions:
77
contents: read
88

99
env:
10-
# for installation testing - it should match with version set in git
11-
UMF_VERSION: 0.11.0
1210
BUILD_DIR : "${{github.workspace}}/build"
1311
INSTL_DIR : "${{github.workspace}}/../install-dir"
1412
COVERAGE_DIR : "${{github.workspace}}/coverage"
@@ -150,6 +148,11 @@ jobs:
150148
- name: Set ptrace value for IPC test
151149
run: sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
152150

151+
- name: Extract version
152+
run: |
153+
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+')
154+
echo "UMF_VERSION=$VERSION" >> $GITHUB_ENV
155+
153156
- name: Configure build
154157
run: >
155158
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}

0 commit comments

Comments
 (0)