diff options
author | Steven Koo <steven.koo@ni.com> | 2021-12-16 11:17:57 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-06 15:10:53 -0600 |
commit | f0ae43ad740335771b4c48a37b92b6f4b38f766a (patch) | |
tree | 6928ad7d8e576af7d0a31998a8a19958c8b14943 /.ci/templates/steps-build-uhd-make-homebrew-macos.yml | |
parent | d0bd9f174195f9baca4c383b4c98acef983f0f88 (diff) | |
download | uhd-f0ae43ad740335771b4c48a37b92b6f4b38f766a.tar.gz uhd-f0ae43ad740335771b4c48a37b92b6f4b38f766a.tar.bz2 uhd-f0ae43ad740335771b4c48a37b92b6f4b38f766a.zip |
ci: build on macOS
This adds macOS build support using homebrew
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/steps-build-uhd-make-homebrew-macos.yml')
-rw-r--r-- | .ci/templates/steps-build-uhd-make-homebrew-macos.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-make-homebrew-macos.yml b/.ci/templates/steps-build-uhd-make-homebrew-macos.yml new file mode 100644 index 000000000..629e56212 --- /dev/null +++ b/.ci/templates/steps-build-uhd-make-homebrew-macos.yml @@ -0,0 +1,29 @@ +parameters: +- name: uhdSrcDir + type: string +- name: uhdBuildDir + type: string + +steps: +- script: | + pyenv exec python3 -m venv ${{ parameters.uhdBuildDir }}/pyenv + source ${{ parameters.uhdBuildDir }}/pyenv/bin/activate + python3 -m pip install mako + displayName: Install python UHD deps + +- script: | + mkdir -p ${{ parameters.uhdBuildDir }} + cd ${{ parameters.uhdBuildDir }} + source ${{ parameters.uhdBuildDir }}/pyenv/bin/activate + cmake ${{ parameters.uhdSrcDir }}/host + displayName: cmake homebrew macOS UHD + +- script: | + source ${{ parameters.uhdBuildDir }}/pyenv/bin/activate + cd ${{ parameters.uhdBuildDir }} + make -j$(sysctl -n hw.ncpu) -k + displayName: make homebrew macOS UHD + +- script: | + rm -rf ${{ parameters.uhdBuildDir }}/pyenv + displayName: Delete venv |