ci: 增加 arm64(clang)构建与测试
ci / linux-arm64 (push) Failing after 3m14s

用 aarch64-clang 标签的 runner,镜像自带 clang/lld/cmake/ninja。
刻意不用 actions/checkout:那需要从 GitHub 下载 action,而这台机器连不上。
This commit is contained in:
dsh committed 2026-11-24 09:04:38 +08:00
1 parent 7170ad4813
commit b94f1da232
1 file changed
+32
+32
View File
@@ -0,0 +1,32 @@
name: ci
on:
push:
pull_request:
workflow_dispatch:
jobs:
linux-arm64:
# 这个标签对应的镜像自带 clang/lld/cmake/ninja/make/git/python3
runs-on: aarch64-clang
steps:
- name: checkout
# 不用 actions/checkout:本机拉不到 GitHub,而且这个镜像本来就不需要
run: |
git clone --depth 1 https://gitea.starcells.ltd/dsh/R8Forge.git .
git log --oneline -1
- name: toolchain
run: |
uname -m
clang --version | head -1
cmake --version | head -1
ninja --version
- name: configure
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build -j"$(nproc)"
- name: test
run: ctest --test-dir build --output-on-failure -j"$(nproc)"