-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.76 KB
/
Copy pathci-linux.yml
File metadata and controls
58 lines (48 loc) · 1.76 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
name: ci-linux
# 本工作流验证 Linux x86_64 的本地贡献者路径
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-linux-${{ github.ref }}
cancel-in-progress: true
env:
# 安装脚本及发布版本均固定,包索引在工具安装前更新
XLINGS_VERSION: v2026.8.27.5
XLINGS_NON_INTERACTIVE: '1'
jobs:
build-test:
name: build + test (linux x86_64)
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install xlings
run: |
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/3d2a24363c746c618d43f3793a7b52ef1aa66856/tools/other/quick_install.sh \
| bash -s "$XLINGS_VERSION"
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
- name: Install project tools (.xlings.json → mcpp)
run: |
# 安装前刷新发布时冻结的包索引快照
xlings update
xlings install -y
mcpp --version
- name: Qualify library
run: |
scripts/qualify-command.sh mcpp build --profile dev --strict --cache=off
scripts/qualify-command.sh mcpp test --profile dev --strict --cache=off
scripts/qualify-command.sh mcpp build --profile release --strict --cache=off
scripts/qualify-command.sh mcpp test --profile release --strict --cache=off
- name: Qualify example
run: |
cd examples/basic
../../scripts/qualify-command.sh mcpp build --profile dev --strict --cache=off
../../scripts/qualify-command.sh mcpp run
../../scripts/qualify-command.sh mcpp build --profile release --strict --cache=off