-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
54 lines (51 loc) · 1.65 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
core:
name: core-only (no picoquic)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install build tools
run: sudo apt-get update && sudo apt-get install -y cmake g++ ninja-build
- name: Configure (core only)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
-DROQR_BUILD_QUIC=OFF -DROQR_BUILD_RTMP=ON
-DROQR_BUILD_EXAMPLES=OFF -DROQR_BUILD_TESTS=ON
- name: Build
run: cmake --build build --parallel
- name: Test
run: ctest --test-dir build --output-on-failure
full:
name: full (${{ matrix.cc }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { cc: gcc, cxx: g++ }
- { cc: clang, cxx: clang++ }
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y
cmake g++ clang ninja-build libssl-dev ffmpeg
- name: Build picoquic deps
run: eval "$(scripts/setup_picoquic_deps.sh)"; echo "$ROQR_PICOQUIC_SOURCE_DIR"
- name: Configure
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: |
eval "$(scripts/setup_picoquic_deps.sh)"
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug \
-DROQR_BUILD_QUIC=ON -DROQR_BUILD_RTMP=ON \
-DROQR_BUILD_TOOLS=ON -DROQR_BUILD_EXAMPLES=ON \
-DROQR_BUILD_TESTS=ON
- name: Build
run: cmake --build build --parallel
- name: Test
run: ctest --test-dir build --output-on-failure