Skip to content

Commit a6bf5b6

Browse files
da-liiiclaude
andauthored
[0026] Debian CI 从 bookworm 升级到 trixie (#758)
- 将容器镜像从 debian:bookworm 升级为 debian:trixie - 将 xmake 安装源从 bookworm-backports 改为 trixie-backports - 创建 devel/0026.md 记录任务信息 Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0b420b5 commit a6bf5b6

3 files changed

Lines changed: 41 additions & 5 deletions

File tree

.github/workflows/ci-debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI on Debian bookworm
1+
name: CI on Debian trixie
22
on:
33
push:
44
branches: [ main ]
@@ -27,7 +27,7 @@ env:
2727

2828
jobs:
2929
build:
30-
container: debian:bookworm
30+
container: debian:trixie
3131
runs-on: ubuntu-22.04
3232
strategy:
3333
fail-fast: true

.github/workflows/package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-22.04
16-
container: debian:bookworm
16+
container: debian:trixie
1717
env:
1818
XMAKE_ROOT: y
1919
DEBIAN_FRONTEND: noninteractive
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: Install Dependencies
2525
run: |
26-
echo 'deb http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/backports.list
26+
echo 'deb http://deb.debian.org/debian trixie-backports main' > /etc/apt/sources.list.d/backports.list
2727
apt-get update
2828
apt-get install -y \
2929
git \
@@ -34,7 +34,7 @@ jobs:
3434
build-essential \
3535
devscripts \
3636
debhelper
37-
apt-get install -y -t bookworm-backports xmake
37+
apt-get install -y -t trixie-backports xmake
3838
3939
- name: Checkout
4040
uses: actions/checkout@v4

devel/0026.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# [0026] Debian CI 从 bookworm 升级到 trixie
2+
3+
## 相关文档
4+
- [dddd.md](dddd.md) - 任务文档模板
5+
6+
## 任务相关的代码文件
7+
- `.github/workflows/ci-debian.yml`
8+
- `.github/workflows/package.yml`
9+
10+
## 如何测试
11+
12+
通过 GitHub Actions 运行验证:
13+
- `CI on Debian trixie` workflow
14+
- `XPack Build` workflow
15+
16+
## 如何提交
17+
18+
提交前执行以下最少步骤:
19+
20+
```bash
21+
bin/gf test --changed-since=main
22+
```
23+
24+
## 2026/05/05 Debian CI 从 bookworm 升级到 trixie
25+
### What
26+
1.`ci-debian.yml``package.yml` 中的容器镜像从 `debian:bookworm` 升级为 `debian:trixie`
27+
2.`package.yml` 中 xmake 的安装源从 `bookworm-backports` 改为 `trixie-backports`
28+
3. 移除 `bookworm-backports` 相关的 apt 源配置,改用 `trixie-backports`
29+
30+
### Why
31+
- xmake 在 bookworm 平台上的 config 阶段存在参数解析错误
32+
- bookworm 自带的 xmake 版本过旧,无法正确执行构建
33+
- trixie 提供更新的基础环境,backports 中 xmake 版本更新
34+
35+
### How
36+
直接修改 GitHub Actions workflow 文件,更新容器镜像和 apt 源配置。

0 commit comments

Comments
 (0)