|
41 | 41 | include: |
42 | 42 | - sys: {os: 'windows', shell: 'pwsh'} |
43 | 43 | cmake_args: >- |
44 | | - -DCMAKE_PREFIX_PATH=C:/vcpkg/installed/x64-windows |
45 | 44 | -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake |
46 | 45 | --install-prefix=$env:GITHUB_WORKSPACE/install |
47 | 46 | - sys: {os: 'windows', shell: 'msys2'} |
|
75 | 74 | sudo apt install libfftw3-dev libusb-1.0-0-dev |
76 | 75 | if: matrix.sys.os == 'ubuntu' |
77 | 76 |
|
78 | | - - name: Install dependencies (Windows) |
79 | | - run: vcpkg install --triplet=x64-windows libusb fftw3 pthreads |
80 | | - if: matrix.sys.os == 'windows' && matrix.sys.shell != 'msys2' |
81 | | - |
82 | 77 | - name: Setup MSYS (Windows) |
83 | 78 | if: matrix.sys.os == 'windows' && matrix.sys.shell == 'msys2' |
84 | 79 | uses: msys2/setup-msys2@v2 |
@@ -132,6 +127,15 @@ jobs: |
132 | 127 | cd host/hackrf-tools/build |
133 | 128 | cmake .. -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} |
134 | 129 | cmake --build . --config Release |
| 130 | + if: matrix.sys.shell != 'pwsh' |
| 131 | + |
| 132 | + - name: Configure & Build (hackrf-tools, vcpkg) |
| 133 | + run: | |
| 134 | + cmake -E make_directory host/hackrf-tools/build |
| 135 | + cd host/hackrf-tools/build |
| 136 | + cmake .. -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} -DCMAKE_PREFIX_PATH=$env:GITHUB_WORKSPACE/install |
| 137 | + cmake --build . --config Release |
| 138 | + if: matrix.sys.shell == 'pwsh' |
135 | 139 |
|
136 | 140 | - name: Install (hackrf-tools) |
137 | 141 | run: | |
|
0 commit comments