-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (65 loc) · 1.92 KB
/
ci-vcpkg.yml
File metadata and controls
77 lines (65 loc) · 1.92 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build and Test (vcpkg)
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build and Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
triplet: x64-windows-release
- os: macos-latest
triplet: arm64-osx-release
- os: ubuntu-24.04
triplet: x64-linux-release
runs-on: ${{ matrix.os }}
permissions:
contents: read
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
VCPKG_DEFAULT_HOST_TRIPLET: ${{ matrix.triplet }}
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Set up cmake and ninja
uses: lukka/get-cmake@f176ccd3f28bda569c43aae4894f06b2435a3375 # v4.2.3
- name: Set up vcpkg
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
- name: Build
run: |
cmake -B build --toolchain vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build
- name: Test
run: ctest --test-dir build
- name: Install
run: sudo cmake --install build
if: runner.os != 'Windows'
- name: Install (Windows)
run: cmake --install build --config Debug
if: runner.os == 'Windows'
- name: Smoke test (build)
run: |
cmake -B build --toolchain ../vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build
working-directory: ci
- name: Smoke test (run)
run: |
./ci-cmake
./ci-pkgconfig
working-directory: ci/build
if: runner.os != 'Windows'
- name: Smoke test (run)
run: |
.\ci-cmake.exe
working-directory: ci/build/Debug
if: runner.os == 'Windows'