Skip to content

Commit 868f31f

Browse files
committed
Compare gdb by major version
1 parent 05dff91 commit 868f31f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ jobs:
242242
export ONEAPI_ROOT=/tmp/gdb
243243
./${{ env.GDB_INSTALLER }} -a -s --eula accept --install-dir $ONEAPI_ROOT
244244
source $ONEAPI_ROOT/debugger/latest/env/vars.sh
245-
# We match only major and minor version because latest gdb is not
246-
# often available.
247-
gdb_version=$(echo "$GDB_INSTALLER" | grep -oP '\d+\.\d+' | head -n 1)
248-
icpx_version=$(conda list dpcpp-cpp-rt | tail -n 1 | awk '{print $2}' | grep -oP '\d+\.\d+')
245+
# We match only major version because latest gdb is not often
246+
# available.
247+
gdb_version=$(echo "$GDB_INSTALLER" | grep -oP '\d+' | head -n 1)
248+
icpx_version=$(conda list dpcpp-cpp-rt | tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 1)
249249
if [ "$gdb_version" != "$icpx_version" ]; then
250250
echo "Error: GDB version ($gdb_version) does not match icpx version ($icpx_version)"
251251
exit 1

0 commit comments

Comments
 (0)