Skip to content

Commit 7736cfb

Browse files
authored
Merge pull request #1781 from McStasMcXtrace/patch-workflows
Patch workflows to re-include macOS 13
2 parents 00b989e + 6773ab1 commit 7736cfb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/mcstas-basictest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12' }
2323
- { os: ubuntu-22.04, CC: clang, CXX: clang++, python: '3.11' }
2424
- { os: ubuntu-22.04, CC: gcc-12, CXX: g++-12, python: '3.11' }
25+
- { os: macos-13, CC: clang, CXX: clang++, python: "3.11" }
2526
- { os: macos-14, CC: clang, CXX: clang++, python: "3.12" }
2627
- { os: macos-15, CC: clang, CXX: clang++, python: "3.13" }
2728
- { os: windows-latest, CC: gcc, CXX: g++, python: "3.12" }
@@ -91,7 +92,9 @@ jobs:
9192
mkdir build_mcstas
9293
cd build_mcstas
9394
export EXTRA_ARGS_FOR_CMAKE=""
94-
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex"; 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
97+
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=${HOMEBRW}/bison/bin/bison -DFLEX_EXECUTABLE=${HOMEBRW}/flex/bin/flex"; fi
9598
if [ "$RUNNER_OS" == "Linux" ]; then export EXTRA_ARGS_FOR_CMAKE="-DNEXUSLIB=/usr/lib -DNEXUSINCLUDE=/usr/include/nexus"; fi
9699
cmake \
97100
-DCMAKE_INSTALL_PREFIX=../install_mcstas \

.github/workflows/mcxtrace-basictest.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12' }
2323
- { os: ubuntu-22.04, CC: clang, CXX: clang++, python: '3.11' }
2424
- { os: ubuntu-22.04, CC: gcc-12, CXX: g++-12, python: '3.11' }
25+
- { os: macos-13, CC: clang, CXX: clang++, python: "3.11" }
2526
- { os: macos-14, CC: clang, CXX: clang++, python: "3.12" }
2627
- { os: macos-15, CC: clang, CXX: clang++, python: "3.13" }
2728
- { os: windows-latest, CC: gcc, CXX: g++, python: "3.12" }
@@ -91,9 +92,9 @@ jobs:
9192
mkdir build_mcxtrace
9293
cd build_mcxtrace
9394
export EXTRA_ARGS_FOR_CMAKE=""
94-
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex"; fi
95-
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex"; fi
96-
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex"; 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
97+
if [ "$RUNNER_OS" == "macOS" ]; then export EXTRA_ARGS_FOR_CMAKE="-DBISON_EXECUTABLE=${HOMEBRW}/bison/bin/bison -DFLEX_EXECUTABLE=${HOMEBRW}/flex/bin/flex"; fi
9798
if [ "$RUNNER_OS" == "Linux" ]; then export EXTRA_ARGS_FOR_CMAKE="-DNEXUSLIB=/usr/lib -DNEXUSINCLUDE=/usr/include/nexus"; fi
9899
cmake \
99100
-DCMAKE_INSTALL_PREFIX=../install_mcxtrace \

0 commit comments

Comments
 (0)