aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-make-homebrew-macos.yml
blob: 6feaed48b4825a09ad8a031127bc7222a6579ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 numpy requests ruamel.yaml
  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: |
    cd ${{ parameters.uhdBuildDir }}
    ctest --no-compress-output --output-on-failure -T test
  continueOnError: true
  displayName: ctest make homebrew macOS UHD

- script: |
    rm -rf ${{ parameters.uhdBuildDir }}/pyenv
  displayName: Delete venv