From be8170046af27f01f1f240a82974485c3d595617 Mon Sep 17 00:00:00 2001 From: Lee Maguire Date: Wed, 31 Jan 2024 12:00:20 +0000 Subject: [PATCH] Add GHA for vcpkg integration --- .github/workflows/vcpkg.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vcpkg.yml b/.github/workflows/vcpkg.yml index 50b230a4..10be7bba 100644 --- a/.github/workflows/vcpkg.yml +++ b/.github/workflows/vcpkg.yml @@ -24,10 +24,8 @@ jobs: sudo apt-get update sudo apt-get install -y cmake - - name: Select working directory - working-directory: cd examples/cmake - - name: Clone vcpkg + working-directory: cd examples/cmake run: | git clone https://github.com/microsoft/vcpkg.git cd vcpkg @@ -35,17 +33,20 @@ jobs: cd .. - name: Configure and build + working-directory: cd examples/cmake 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 + working-directory: cd examples/cmake/build if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' run: | ./realm_helloworld - name: Run Application + working-directory: cd examples/cmake/build if: matrix.os == 'windows-latest' run: | cd build