Skip to content

Update install diections for a conda environment #15

Update install diections for a conda environment

Update install diections for a conda environment #15

Workflow file for this run

name: Build/Test CI
on: [push, pull_request]
jobs:
build-linux-and-macos:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8"]
build-type: [Release]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: true
- name: Show conda installation info
run: conda info
- name: Install build tools and dependencies into env
run: |
conda install c-compiler cmake pkg-config bmi-c
conda list
- name: Make cmake build directory
run: cmake -E make_directory build
- name: Configure cmake
working-directory: ${{ github.workspace }}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
- name: Build
working-directory: ${{ github.workspace }}/build
run: cmake --build . --config ${{ matrix.build-type }}
- name: Test
working-directory: ${{ github.workspace }}/build
run: ctest -C ${{ matrix.build-type }} --output-on-failure
build-windows:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
runs-on: windows-latest
env:
build-type: Release
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
channels: conda-forge
channel-priority: true
- name: Show conda installation info
run: conda info
- name: Install build tools and dependencies into env
run: |
conda install c-compiler cmake pkg-config bmi-c
conda list
- name: Make cmake build directory
run: cmake -E make_directory build
- name: Configure, build, and test
shell: cmd /C CALL {0}
working-directory: ${{ github.workspace }}\build
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.16 10.0.19041.0
:: Configure
cmake ^
-LAH -G "NMake Makefiles" ^
-DPKG_CONFIG_EXECUTABLE:FILEPATH=C:/Miniconda/envs/test/Library/bin/pkg-config.exe ^
-DCMAKE_BUILD_TYPE=${{ env.build-type }} ^
..
:: Build and install
cmake --build . --target install --config ${{ env.build-type }}
:: Test
ctest --output-on-failure -C ${{ env.build-type }} -V