Skip to content

Add vcpkg integration #11

Add vcpkg integration

Add vcpkg integration #11

Workflow file for this run

name: Test vcpkg integration
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ macos-latest ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y cmake
- name: Clone vcpkg
working-directory: ./examples/cmake
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
cd ..
- name: Configure and build
working-directory: ./examples/cmake
run: |
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE="vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_OVERLAY_PORTS="../../ports"
cmake --build build
- name: Run Application
working-directory: cd examples/cmake/build
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
./realm_helloworld
- name: Run Application
working-directory: ./examples/cmake/build
if: matrix.os == 'windows-latest'
run: |
./realm_helloworld