Skip to content

Add GHA for vcpkg integration #7

Add GHA for vcpkg integration

Add GHA for vcpkg integration #7

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]
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: Select working directory
working-directory: cd examples/cmake
- name: Clone vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
cd ..
- name: Configure and build
run: |
vcpkg/vcpkg install
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE="vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_OVERLAY_PORTS="../../ports"
cmake --build build
- name: Run Application
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
./realm_helloworld
- name: Run Application
if: matrix.os == 'windows-latest'
run: |
cd build
./realm_helloworld