Skip to content

Commit

Permalink
Fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Mar 22, 2024
1 parent 03e0a8d commit 878b2a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,13 @@ jobs:
run: |
# Because there is no 'ansys-tools-path' we need to input the
# executable path with the env var: PYMAPDL_MAPDL_EXEC.
version=$(echo "${{ matrix.mapdl-image }}" | head -c 5 | tail -c 4 | tr -d '.')
if [[ $MAPDL_VERSION == *"latest-ubuntu"* ]] ; then
version="242"
else
version=$(echo "${{ matrix.mapdl-image }}" | head -c 5 | tail -c 4 | tr -d '.')
fi;
echo "$version"

export PYMAPDL_MAPDL_EXEC=/ansys_inc/v"$version"/ansys/bin/ansys"$version"
Expand Down

0 comments on commit 878b2a2

Please sign in to comment.