aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-gr-ettus-make.yml
blob: a988eb23df8f140ea3a532b982b8d019489fa759 (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
parameters:
- name: grettusSrcDir
  type: string
- name: grettusBuildDir
  type: string
- name: grettusInstallPath
  type: string
- name: uhdInstalledArtifactPath
  type: string
- name: gnuradioInstalledArtifactPath
  type: string

steps:
- script: |
    mkdir -p ${{ parameters.grettusBuildDir }}
    cd ${{ parameters.grettusBuildDir }}
    mkdir -p ${{ parameters.grettusInstallPath }}
    echo "Setting CMAKE_INSTALL_PREFIX to ${{ parameters.grettusInstallPath }}"
    export UHD_CI_CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${{ parameters.grettusInstallPath }}"
    cmake \
      $UHD_CI_CMAKE_OPTIONS \
      -DCMAKE_PREFIX_PATH="${{ parameters.uhdInstalledArtifactPath }};${{ parameters.gnuradioInstalledArtifactPath }}" \
      ${{ parameters.grettusSrcDir }}
  displayName: cmake make gr-ettus

- script: |
    cd ${{ parameters.grettusBuildDir }}
    make -j$(nproc) -k
  displayName: make gr-ettus

- script: |
    cd ${{ parameters.grettusBuildDir }}
    make install
  displayName: Install gr-ettus to grettusInstallPath