-
Notifications
You must be signed in to change notification settings - Fork 18
59 lines (51 loc) · 1.49 KB
/
vcpkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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, ubuntu-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 \
git \
ninja-build
- name: Setup Ninja
if: matrix.os == 'macos-latest'
uses: seanmiddleditch/gha-setup-ninja@master
- name: Clone vcpkg
working-directory: ./tests/vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
cd ..
- name: Configure and build
working-directory: ./tests/vcpkg
run: |
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_OVERLAY_PORTS=../../ports
cd build
cmake --build .
- name: Open a tmate debug session
if: ${{ failure() && runner.debug }}
uses: mxschmitt/action-tmate@v3
with:
timeout-minutes: 15
- name: Run Application
working-directory: ./tests/vcpkg/build
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
./realm_helloworld