-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.36 KB
/
cpp-macos.yml
File metadata and controls
59 lines (51 loc) · 1.36 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
---
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- 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 "-----------"
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