File tree 2 files changed +24
-8
lines changed
2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 37
37
38
38
build-macos :
39
39
name : build in native macOS
40
- runs-on : macos-latest
40
+ runs-on : macos-14
41
41
steps :
42
42
- name : Checkout code
43
43
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 470
470
if command_exists " python3" ; then
471
471
# dav1d needs meson and ninja along with nasm to be built
472
472
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
478
482
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
+
481
497
fi
482
498
if command_exists " meson" ; then
483
499
if build " dav1d" " 1.4.2" ; then
You can’t perform that action at this time.
0 commit comments