-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.64 KB
/
Copy pathci.yml
File metadata and controls
63 lines (52 loc) · 1.64 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
63
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
name: mcpp (ubuntu-latest, required)
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
# No host nasm needed: mcpp >= 0.0.97 provisions nasm through the same
# synchronous gate as the toolchain (index refresh + install + payload
# check BEFORE the build plans, mcpp#232).
- name: Install Xlings
env:
XLINGS_NON_INTERACTIVE: 1
run: |
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/refs/heads/main/tools/other/quick_install.sh | bash
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
- name: Install project tools
run: |
xlings update
xlings install
# Same transition step as imgui-m: pin the glibc gcc toolchain explicitly
# until mcpp's bootstrap default settles.
- name: Set default toolchain
run: |
mcpp toolchain install gcc 16.1.0
mcpp toolchain default gcc@16.1.0
mcpp --version
- name: Build library (via compat.ffmpeg source build)
run: mcpp build
- name: Run tests (API surface + encode/decode roundtrip)
run: mcpp test
- name: Run probe example (path-dep consumer)
run: |
cd examples/probe
mcpp run
- name: Build decode_frames example
run: |
cd examples/decode_frames
mcpp build