Skip to content

Commit 01ea27c

Browse files
committed
Try with -f on the flex binary
1 parent 59830c4 commit 01ea27c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/mcstas-basictest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ jobs:
9292
mkdir build_mcstas
9393
cd build_mcstas
9494
export EXTRA_ARGS_FOR_CMAKE=""
95-
if [ "$RUNNER_OS" == "macOS" ] && [ -d "/opt/homebrew/opt" ]; then export HOMEBRW="/opt/homebrew/opt"; fi
96-
if [ "$RUNNER_OS" == "macOS" ] && [ -d "/usr/local/opt" ]; then export HOMEBRW="/usr/local/opt"; fi
95+
if [ "$RUNNER_OS" == "macOS" ] && [ -f "/opt/homebrew/opt/flex/bin/flex" ]; then export HOMEBRW="/opt/homebrew/opt"; fi
96+
if [ "$RUNNER_OS" == "macOS" ] && [ -f "/usr/local/opt/flex/bin/flex" ]; then export HOMEBRW="/usr/local/opt"; fi
9797
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=${HOMEBRW}/bison/bin/bison -DFLEX_EXECUTABLE=${HOMEBRW}/flex/bin/flex"; fi
9898
if [ "$RUNNER_OS" == "Linux" ]; then export EXTRA_ARGS_FOR_CMAKE="-DNEXUSLIB=/usr/lib -DNEXUSINCLUDE=/usr/include/nexus"; fi
9999
cmake \

0 commit comments

Comments
 (0)