|
22 | 22 | - { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12' } |
23 | 23 | - { os: ubuntu-22.04, CC: clang, CXX: clang++, python: '3.11' } |
24 | 24 | - { os: ubuntu-22.04, CC: gcc-12, CXX: g++-12, python: '3.11' } |
| 25 | + - { os: macos-13, CC: clang, CXX: clang++, python: "3.11" } |
25 | 26 | - { os: macos-14, CC: clang, CXX: clang++, python: "3.12" } |
26 | 27 | - { os: macos-15, CC: clang, CXX: clang++, python: "3.13" } |
27 | 28 | - { os: windows-latest, CC: gcc, CXX: g++, python: "3.12" } |
|
91 | 92 | mkdir build_mcxtrace |
92 | 93 | cd build_mcxtrace |
93 | 94 | 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 |
97 | 98 | if [ "$RUNNER_OS" == "Linux" ]; then export EXTRA_ARGS_FOR_CMAKE="-DNEXUSLIB=/usr/lib -DNEXUSINCLUDE=/usr/include/nexus"; fi |
98 | 99 | cmake \ |
99 | 100 | -DCMAKE_INSTALL_PREFIX=../install_mcxtrace \ |
|
0 commit comments