Skip to content

Commit

Permalink
feat: Add macOS arm64 builds (#39)
Browse files Browse the repository at this point in the history
This uses a self-hosted runner in our lab to do macOS arm64 builds.
  • Loading branch information
joeyparrish committed Oct 1, 2023
1 parent 75747ec commit 4b7d58b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"os_name": "linux",
"target_arch": "arm64",
"exe_ext": ""
},
{
"os": "self-hosted-macos-arm64",
"os_name": "osx",
"target_arch": "arm64",
"exe_ext": ""
}
]
}
2 changes: 1 addition & 1 deletion build-scripts/01-libvpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ cd libvpx

# NOTE: disabling unit tests and examples significantly reduces build
# time (by 80% as tested on a Jetson Nano)
# NOTE: --enable-runtime-cpu-detect fails on macOS arm64.
./configure \
--enable-vp8 \
--enable-vp9 \
--enable-runtime-cpu-detect \
--disable-unit-tests \
--disable-examples \
--enable-static \
Expand Down
5 changes: 5 additions & 0 deletions build-scripts/07-mbedtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ git clone --depth 1 https://github.com/ARMmbed/mbedtls.git -b "$tag"

cd mbedtls

# Remove some compiler flags that cause build failures on macOS arm64. This
# can't be done through CMake variables, so we have to patch the source.
sed -e 's/-Wdocumentation//' -e 's/-Wno-documentation-deprecated-sync//' \
-i.bk library/CMakeLists.txt

# NOTE: without CMAKE_INSTALL_PREFIX on Windows, files are installed
# to c:\Program Files.
cmake . \
Expand Down

0 comments on commit 4b7d58b

Please sign in to comment.