File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : CI on Debian bookworm
1+ name : CI on Debian trixie
22on :
33 push :
44 branches : [ main ]
2727
2828jobs :
2929 build :
30- container : debian:bookworm
30+ container : debian:trixie
3131 runs-on : ubuntu-22.04
3232 strategy :
3333 fail-fast : true
Original file line number Diff line number Diff line change 1313jobs :
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
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 \
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
Original file line number Diff line number Diff line change 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 源配置。
You can’t perform that action at this time.
0 commit comments