Skip to content

Commit

Permalink
Add GHA for vcpkg integration
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed Jan 31, 2024
1 parent bffe74e commit be81700
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,29 @@ 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
./bootstrap-vcpkg.sh
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
Expand Down

0 comments on commit be81700

Please sign in to comment.