aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-gnuradio-make.yml
blob: d8ca7cbee2b1982e27e61ac06fd466ed2aef9aa3 (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
parameters:
- name: gnuradioSrcDir
  type: string
- name: gnuradioBuildDir
  type: string
- name: gnuradioInstallPath
  type: string
- name: uhdInstalledArtifactPath
  type: string

steps:
- script: |
    mkdir -p ${{ parameters.gnuradioBuildDir }}
    cd ${{ parameters.gnuradioBuildDir }}
    mkdir -p ${{ parameters.gnuradioInstallPath }}
    echo "Setting CMAKE_INSTALL_PREFIX to ${{ parameters.gnuradioInstallPath }}"
    export UHD_CI_CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${{ parameters.gnuradioInstallPath }}"
    cmake \
      $UHD_CI_CMAKE_OPTIONS \
      -DCMAKE_PREFIX_PATH="${{ parameters.uhdInstalledArtifactPath }}" \
      ${{ parameters.gnuradioSrcDir }}
  displayName: cmake make gnuradio

- script: |
    cd ${{ parameters.gnuradioBuildDir }}
    make -j$(nproc) -k
  displayName: make gnuradio

- script: |
    cd ${{ parameters.gnuradioBuildDir }}
    make install
  displayName: Install gnuradio to gnuradioInstallPath