-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.74 KB
/
Copy pathci.yml
File metadata and controls
62 lines (53 loc) · 1.74 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
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build & test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
env:
# Used by cmake/LiveKitSDK.cmake to resolve & download the LiveKit release.
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- name: Install build tools (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y ninja-build libssl-dev zlib1g-dev
- name: Install build tools (macOS)
if: runner.os == 'macOS'
run: brew install ninja
- name: Configure & build (Unix)
if: runner.os != 'Windows'
run: |
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DDECART_BUILD_EXAMPLES=ON -DDECART_BUILD_TESTS=ON
cmake --build build
- name: Configure & build (Windows, vcpkg)
if: runner.os == 'Windows'
shell: pwsh
run: |
cmake -B build -S . `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" `
-DVCPKG_MANIFEST_FEATURES=tests `
-DDECART_BUILD_EXAMPLES=ON -DDECART_BUILD_TESTS=ON
cmake --build build --config Release
- name: Test
run: ctest --test-dir build --output-on-failure -C Release
format:
name: clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: |
sudo apt-get update && sudo apt-get install -y clang-format
./scripts/format.sh --check