Skip to content

Commit

Permalink
Use Windows install path Library prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Oct 19, 2023
1 parent 0e4d3e7 commit df200a0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,38 @@ jobs:
- name: Make cmake build directory
run: cmake -E make_directory build

- name: Configure CMake (unix)
- name: Configure CMake (Unix)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
working-directory: ${{ github.workspace }}/build
run: |
cmake .. \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
- name: Configure CMake (windows)
- name: Configure CMake (Windows)
if: matrix.os == 'windows-latest'
working-directory: ${{ github.workspace }}\build
shell: pwsh
run: |
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x86
cmake .. `
-DCMAKE_INSTALL_PREFIX:PATH=$env:CONDA_PREFIX `
-DCMAKE_INSTALL_PREFIX:PATH=$env:CONDA_PREFIX\Library `
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
- name: Build
working-directory: ${{ github.workspace }}/build
run: cmake --build . --target install --config ${{ matrix.build-type }}

- name: Test
run: |
- name: Test (Unix)
if: matrix.os != 'windows-latest'
run: |
test -f $CONDA_PREFIX/include/bmi.h
test -f $CONDA_PREFIX/lib/pkgconfig/bmic.pc
- name: Test (Windows)
if: matrix.os == 'windows-latest'
working-directory: ${{ github.workspace }}/build
run: |
if ( -not ( Test-Path -Path $env:CONDA_PREFIX\Library\include\bmi.h ) ){ exit 1 }
if ( -not ( Test-Path -Path $env:CONDA_PREFIX\Library\lib\pkgconfig\bmic.pc ) ){ exit 1 }

0 comments on commit df200a0

Please sign in to comment.