File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 3737
3838 build-macos :
3939 name : build in native macOS
40- runs-on : macos-latest
40+ runs-on : macos-14
4141 steps :
4242 - name : Checkout code
4343 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 470470if command_exists " python3" ; then
471471 # dav1d needs meson and ninja along with nasm to be built
472472 if command_exists " pip3" ; then
473- # meson and ninja can be installed via pip3
474- execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
475- for r in meson ninja; do
476- if ! command_exists ${r} ; then
477- execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
473+
474+ # set variable meson and ninja installed to false
475+ MESON_INSTALLED=false
476+
477+ # check if macOs and brew is available
478+ if [[ " $OSTYPE " == " darwin" * ]]; then
479+ if ! command_exists " brew" ; then
480+ brew install python-setuptools meson ninja
481+ MESON_INSTALLED=true
478482 fi
479- export PATH=$PATH :~ /Library/Python/3.9/bin
480- done
483+ fi
484+
485+ # check if meson and ninja are installed MESON_INSTALLED
486+ if ! $MESON_INSTALLED ; then
487+ # meson and ninja can be installed via pip3
488+ execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
489+ for r in meson ninja; do
490+ if ! command_exists ${r} ; then
491+ execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
492+ fi
493+ export PATH=$PATH :~ /Library/Python/3.9/bin
494+ done
495+ fi
496+
481497 fi
482498 if command_exists " meson" ; then
483499 if build " dav1d" " 1.4.2" ; then
You can’t perform that action at this time.
0 commit comments