diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c66e0e05f7a..c214f417e79 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -41,6 +41,21 @@ jobs: - name: install Ninja if: matrix.generator == 'Ninja' run: brew install ninja + - name: install python + run: | + if which python > /dev/null 2>&1; then + echo "Python executable exists" + else + brew install python@3.13 + ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python + fi + - name: install cmake + run: | + if which cmake > /dev/null 2>&1; then + echo "cmake executable exists" + else + brew install cmake + fi - name: check environment run: | env | sort