-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 896 Bytes
/
ci-cpp-macos.yml
File metadata and controls
42 lines (34 loc) · 896 Bytes
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
name: "CI C++: MacOS"
on: [ push, pull_request ]
jobs:
build:
name: MacOS (${{ matrix.compiler.name }})
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
compiler:
- {
name: "Clang",
cc: "clang",
cxx: "clang++"
}
steps:
- uses: actions/checkout@v4
- uses: tecolicom/actions-use-homebrew-tools@v1
with:
tools: llvm ninja cmake
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
- name: Update xmake repository
run: xmake repo --update
- name: Configure & Install dependencies
run: |
xmake f --toolchain=llvm --sdk="$(brew --prefix)/opt/llvm/" --runtimes="c++_shared" --enable_tests=y -v --yes
- name: Build
run: |
xmake build -v
- name: Run tests
run: |
xmake run