-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.41 KB
/
cpp-macos.yml
File metadata and controls
61 lines (53 loc) · 1.41 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
---
name: C/C++ CMake/LLVM MacOS CI Test
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_dispatch:
jobs:
test:
name: C/C++ CMake CI Test
strategy:
matrix:
os: ["macos-14"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install
shell: bash
run: |
export VCPKG_VERSION=2025.02.14
git clone \
--depth 1 \
--branch $VCPKG_VERSION \
https://github.com/microsoft/vcpkg.git \
--single-branch \
"$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
echo "$VCPKG_ROOT" >> $GITHUB_PATH
sh $VCPKG_ROOT/bootstrap-vcpkg.sh
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
- name: Check Tools
run: |
echo "-----------"
c++ --version
echo "-----------"
make --version
echo "-----------"
cmake --version
echo "-----------"
vcpkg --version
echo "-----------"
- name: Install dependencies
run: |
make dependencies
- name: Build
run: |
make build
- name: Test
run: |
make test