Skip to content

Commit 7e6767e

Browse files
authored
fix: speos-optislang WF failing (#150)
1 parent fcac290 commit 7e6767e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/speos-optislang.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ jobs:
6565
ANSYS_RELEASE_COMPACT="${ANSYS_RELEASE_SHORT//./}"
6666
echo "ANSYS_RELEASE_COMPACT=$ANSYS_RELEASE_COMPACT" >> $GITHUB_ENV
6767
68+
- name: Modify ansyslmd.ini file
69+
shell: bash
70+
run: |
71+
# Define the path to the license file
72+
LIC_FILE_PATH="C:\Program Files\ANSYS Inc\Shared Files\licensing\ansyslmd.ini"
73+
# Verify that the file exists
74+
if [ ! -f "$LIC_FILE_PATH" ]; then
75+
echo "License file not found at $LIC_FILE_PATH"
76+
exit 1
77+
fi
78+
# REPLACE the line starting with SERVER by something like: SERVER=1055@XX.XXX.XX.XX
79+
sed -i "s|^SERVER=.*|SERVER=${{ env.ANSYSLMD_LICENSE_FILE }}|" "$LIC_FILE_PATH"
80+
6881
- name: Install dependencies
6982
shell: bash
7083
run: |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
ansys-speos-core[graphics]==0.5.1
2-
ansys-optislang-core==1.0.0
2+
ansys-optislang-core==1.0.0

0 commit comments

Comments
 (0)