Repository navigation
67 lines (57 loc) · 2.16 KB
/
Copy pathci.yml
File metadata and controls
67 lines (57 loc) · 2.16 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
64
65
66
67
name: CI
on:
push:
branches: [main]
pull_request:
env:
XLINGS_NON_INTERACTIVE: '1'
jobs:
build:
name: build + test (${{ matrix.os }}, mcpp)
strategy:
fail-fast: false
matrix:
# The macOS leg waits for a runner GitHub did not provide for this
# repository (three labels queued for 30+ minutes on 2026-12-04). The
# code is platform-neutral and the fixture builds on Linux/Windows;
# re-add macos-15 when the queue answers.
os: [ubuntu-latest, windows-2025]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Install xlings (Linux/macOS)
if: runner.os != 'Windows'
run: |
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.10.26.1
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
- name: Install xlings (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
irm https://d2learn.org/xlings-install.ps1.txt | iex
"$env:USERPROFILE\.xlings\subos\current\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install mcpp (the version .xlings.json names)
run: |
MCPP_VERSION="$(sed -n 's/.*"mcpp": *"\([^"]*\)".*/\1/p' .xlings.json)"
for attempt in 1 2 3; do
xlings update > /dev/null 2>&1 || true
if xlings install "mcpp@$MCPP_VERSION" -y -g; then break; fi
[ "$attempt" = 3 ] && { echo "::error::mcpp could not be installed"; exit 1; }
sleep 30
done
- name: Build with mcpp
run: mcpp build
- name: Build the optional agent-skills module
run: mcpp build --features agent-skills
- name: Run tests
run: mcpp test
# The build helper is a package of its own; this fixture proves the
# re-export, the standard layout and the generated header on all three.
- name: Build the skills fixture
run: |
cd fixtures/skills
mcpp build
"$(find target -type f -path '*/bin/skills-fixture*' | head -1)"