Skip to content

Commit 2010af5

Browse files
da-liiiclaude
andcommitted
[1107] 将 moebius Linux CI 改为 Debian 13
- 使用 debian:13 容器替代 ubuntu-22.04 runner - 同步安装与主 Debian CI 一致的依赖 - 工作流文件重命名为 ci-moebius-debian13.yml Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 91a339a commit 2010af5

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI for moebius on Ubuntu 22.04
1+
name: CI for moebius on Debian 13
22

33
on:
44
push:
@@ -11,7 +11,7 @@ on:
1111
- 'moebius/tests/**'
1212
- 'moebius/bench/**'
1313
- 'moebius/xmake.lua'
14-
- '.github/workflows/ci-moebius-ubuntu.yml'
14+
- '.github/workflows/ci-moebius-debian13.yml'
1515
pull_request:
1616
branches: [ main ]
1717
paths:
@@ -22,24 +22,28 @@ on:
2222
- 'moebius/tests/**'
2323
- 'moebius/bench/**'
2424
- 'moebius/xmake.lua'
25-
- '.github/workflows/ci-moebius-ubuntu.yml'
25+
- '.github/workflows/ci-moebius-debian13.yml'
2626
workflow_dispatch:
2727

28+
env:
29+
XMAKE_ROOT: y
30+
2831
jobs:
29-
linuxbuild:
30-
runs-on: ubuntu-22.04
32+
build:
33+
container: debian:13
34+
runs-on: ubuntu-latest
3135
steps:
3236
- name: Install dependencies
3337
run: |
34-
sudo apt-get update
35-
sudo apt-get install -y gcc cmake libcurl4-openssl-dev
36-
# Force xmake to a specific folder (for cache)
38+
DEBIAN_FRONTEND=noninteractive apt-get update
39+
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc git 7zip unzip curl build-essential \
40+
fonts-noto-cjk libcurl4-openssl-dev libfreetype-dev libfontconfig-dev \
41+
libmimalloc-dev libgit2-dev zlib1g-dev libssl-dev libjpeg62-turbo-dev cmake \
42+
pandoc xmake python3.13 python3.13-venv python3-pip ninja-build \
43+
libdbus-1-3 libglib2.0-0t64 libegl1 libgl-dev libxkbcommon0
3744
- name: Set xmake global dir
3845
run: |
3946
echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/.xmake-global" >> "${{ github.env }}"
40-
- uses: xmake-io/github-action-setup-xmake@v1
41-
with:
42-
xmake-version: v2.8.7
4347
- name: update repo
4448
run: xmake repo -u
4549
- uses: actions/checkout@v3
@@ -52,7 +56,6 @@ jobs:
5256
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
5357
${{ github.workspace }}/build/.build_cache
5458
key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }}
55-
# Force xmake to a specific folder (for cache)
5659
- name: config
5760
run: xmake config --yes -vD
5861
- name: build

devel/1107.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- `moebius/xmake.lua` — moebius 子模块构建配置
1414
- `moebius/Data/History/commute.cpp` — 从 `src/Data/History/commute.cpp` 迁移进 moebius
1515
- `src/Data/History/commute.cpp` — 迁移后删除(内容不变)
16-
- `.github/workflows/ci-moebius-ubuntu.yml` — moebius Ubuntu CI(新增)
16+
- `.github/workflows/ci-moebius-debian13.yml` — moebius Debian 13 CI(新增)
1717
- `.github/workflows/ci-moebius-macos.yml` — moebius macOS CI(新增)
1818
- `.github/workflows/ci-moebius-windows.yml` — moebius Windows CI(新增)
1919
- `.github/workflows/ci-moebius-format-linter.yml` — moebius 代码格式检查(新增)

0 commit comments

Comments
 (0)