drop the CI pipeline, keep the local ctest

The act_runner image has no cmake and installing it per run did not get through
this network (even from a domestic mirror), so the pipeline was cost without a
green run.  Remove .gitea/workflows/ci.yml and the image recipe, keep what was
useful on its own:

  * ctest --test-dir build -j 4   runs the 8 checks in about 9 s
  * README / AGENTS now point at that instead of six commands typed by hand

TODO keeps a note: CI is paused, and ROT-8-viz is still the untested half.
This commit is contained in:
dsh committed 2026-11-11 10:07:44 +08:00
1 parent a48adc85c6
commit cc75ed7ea4
5 files changed
+6 -224

No files matched your search

-188
View File
@@ -1,188 +0,0 @@
# Gitea act_runner (labels: ubuntu-latest / ubuntu-24.04 / ubuntu-22.04).
#
# One runner means one job at a time, so the cheap tier has to stay cheap:
# push : baseline only, 11 bits, and not for docs-only commits
# PR : baseline + the width matrix
# manual : everything, including the wide sweep and the cold cache audit
# Every job has a timeout: a hung step used to sit in the queue for half an hour
# and block every later push.
name: ci
on:
push:
paths-ignore:
- "**.md"
- "docs/**"
- ".r8forge_cache/**"
pull_request:
workflow_dispatch:
# A newer push cancels the older run instead of queueing behind it -- with a
# single runner that is the difference between one job and a backlog.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
baseline:
name: baseline (11 bit)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
# The runner image is a bare ubuntu, so the toolchain is installed per run.
# Point apt at a domestic mirror first -- archive.ubuntu.com is the slowest
# hop on this network. Swap APT_MIRROR for mirrors.aliyun.com/ubuntu or
# mirrors.ustc.edu.cn/ubuntu if TUNA is unhappy.
- name: toolchain
env:
DEBIAN_FRONTEND: noninteractive
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
run: |
set -eu
SUDO=""
command -v sudo >/dev/null 2>&1 && SUDO=sudo
# jammy and older keep sources.list; noble and newer use the deb822
# .sources format, so rewrite whatever exists.
for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
[ -f "$f" ] || continue
$SUDO sed -i -E "s#https?://(archive|security|ports)\.ubuntu\.com/ubuntu#${APT_MIRROR}#g" "$f"
done
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq --no-install-recommends cmake g++ make
cmake --version | head -1
g++ --version | head -1
echo "cores: $(nproc)"
- name: configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build -j 4
- name: ctest
run: ctest --test-dir build -j 4 --output-on-failure
widths:
# Another cell width is one configure away (-DR8FORGE_CELL_SIZE). Only the
# `widthfree` tests are required: examples/ pins 2047 style values and
# byte_op_test drives the 8/11 bit word macros.
name: cell ${{ matrix.cell }}
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
cell: [8, 16, 32]
steps:
- uses: actions/checkout@v4
# The runner image is a bare ubuntu, so the toolchain is installed per run.
# Point apt at a domestic mirror first -- archive.ubuntu.com is the slowest
# hop on this network. Swap APT_MIRROR for mirrors.aliyun.com/ubuntu or
# mirrors.ustc.edu.cn/ubuntu if TUNA is unhappy.
- name: toolchain
env:
DEBIAN_FRONTEND: noninteractive
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
run: |
set -eu
SUDO=""
command -v sudo >/dev/null 2>&1 && SUDO=sudo
# jammy and older keep sources.list; noble and newer use the deb822
# .sources format, so rewrite whatever exists.
for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
[ -f "$f" ] || continue
$SUDO sed -i -E "s#https?://(archive|security|ports)\.ubuntu\.com/ubuntu#${APT_MIRROR}#g" "$f"
done
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq --no-install-recommends cmake g++ make
cmake --version | head -1
g++ --version | head -1
echo "cores: $(nproc)"
- name: configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DR8FORGE_CELL_SIZE=${{ matrix.cell }}
- name: build
run: cmake --build build -j 4
- name: width free tests
run: ctest --test-dir build -L widthfree -j 4 --output-on-failure
sweep:
name: wide sweep (manual)
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
cell: [8, 11, 16, 24, 32]
steps:
- uses: actions/checkout@v4
# The runner image is a bare ubuntu, so the toolchain is installed per run.
# Point apt at a domestic mirror first -- archive.ubuntu.com is the slowest
# hop on this network. Swap APT_MIRROR for mirrors.aliyun.com/ubuntu or
# mirrors.ustc.edu.cn/ubuntu if TUNA is unhappy.
- name: toolchain
env:
DEBIAN_FRONTEND: noninteractive
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
run: |
set -eu
SUDO=""
command -v sudo >/dev/null 2>&1 && SUDO=sudo
# jammy and older keep sources.list; noble and newer use the deb822
# .sources format, so rewrite whatever exists.
for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
[ -f "$f" ] || continue
$SUDO sed -i -E "s#https?://(archive|security|ports)\.ubuntu\.com/ubuntu#${APT_MIRROR}#g" "$f"
done
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq --no-install-recommends cmake g++ make
cmake --version | head -1
g++ --version | head -1
echo "cores: $(nproc)"
- name: configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DR8FORGE_CELL_SIZE=${{ matrix.cell }}
- name: build
run: cmake --build build -j 4
- name: width free tests
run: ctest --test-dir build -L widthfree -j 4 --output-on-failure
cold-cache:
# The committed .r8forge_cache is trusted by every build, so on demand we
# throw it away and let the searcher find the blocks again. A failure here
# means the cache no longer matches what the current model searches for.
name: cold cache (manual)
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
# The runner image is a bare ubuntu, so the toolchain is installed per run.
# Point apt at a domestic mirror first -- archive.ubuntu.com is the slowest
# hop on this network. Swap APT_MIRROR for mirrors.aliyun.com/ubuntu or
# mirrors.ustc.edu.cn/ubuntu if TUNA is unhappy.
- name: toolchain
env:
DEBIAN_FRONTEND: noninteractive
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
run: |
set -eu
SUDO=""
command -v sudo >/dev/null 2>&1 && SUDO=sudo
# jammy and older keep sources.list; noble and newer use the deb822
# .sources format, so rewrite whatever exists.
for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
[ -f "$f" ] || continue
$SUDO sed -i -E "s#https?://(archive|security|ports)\.ubuntu\.com/ubuntu#${APT_MIRROR}#g" "$f"
done
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq --no-install-recommends cmake g++ make
cmake --version | head -1
g++ --version | head -1
echo "cores: $(nproc)"
- name: configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build -j 4
- name: forget the cache
run: rm -rf .r8forge_cache
- name: search again
run: ctest --test-dir build -R "flagship|synth_full_add" --output-on-failure
+1 -1
View File
@@ -29,7 +29,7 @@ cmake --build build --config Release
# 注意:必须用给 build/ 配的那个 cmake(PATH 上的另一个版本会重新配置,然后死在
# "No preprocessor test for PellesC")。本机路径见 AGENTS.local.md。
# 当前基线:都通过,别弄坏
# 当前基线:都通过,别弄坏(`ctest --test-dir build -j 4` 一次跑完 8 条,约 9 秒)
r8forge asm/test.r8asm # 64513 字符(每个标准宏至少一次 + 每个语言特性)
r8forge_byte_op_test # 21 项(divmod 16384 组、digits 2048、undigits 4096)
r8forge_examples_test # 15 个 example + asm/test.r8asm,核对头部 `; out`/`; in`
+1
View File
@@ -129,6 +129,7 @@ build/Release/r8forge_byte_op_test # 字节级库穷举
build/Release/r8forge_examples_test # 例程 + 全家桶,核对 `; out`
build/Release/r8forge_macro_docs_test # 宏注释格式
build/Release/r8forge_derive verify_loop.r8asm -1 0=5 # 动态循环:out 应该是 5 0
ctest --test-dir build -j 4 --output-on-failure # 上面这些一次跑完(8 条,约 9 秒)
```
`build/` 已经配好生成器:重编译请用**给它配的那个 cmake**(PATH 上的另一个版本会重新配置,
+4 -3
View File
@@ -23,9 +23,10 @@
(现在"`.tp` 行走占七成"还是估的)。
* **`%synth --verify`**:把 `.r8forge_cache/` 里每条结果按对应表的所有输入重跑一遍,
给"缓存已入库"兜底 —— 一条坏条目会让每次构建静默用错块。
* **CI**:`enable_testing()` + 六条 `add_test`,再接一个 workflow,push 即跑全套(现在 46 万组
验证只能靠人记得敲命令)。**ROT-8-viz 那边更值得先做**:它目前零测试,串行默认 / `-n` /
几何 / 7E1 全靠手测,而它又是权威虚拟机。
* **CI**:暂时不做。本地的 `ctest --test-dir build -j 4` 已经接好(8 条,9 秒),但 act_runner 的
镜像里没有 cmake,装包(哪怕换了国内源)也跑不通,先本地跑。
**ROT-8-viz 仍然零测试**:串行默认 / `-n` / 几何 / 7E1 全靠手测,而它是权威虚拟机 ——
哪天要补测试,先补它。
* **`src/r8asm.cc:154`** 有个上游留下的 `// TODO: FILL THE BLANK`(`ROT8_NODE` 宏的
children 是空的)。那是继承来的实现,先记着,别顺手改。
-32
View File
@@ -1,32 +0,0 @@
# The CI image.
#
# A job container should not install packages: an apt-get per run is slow, needs
# the Ubuntu mirrors (often the flakiest part of a Chinese network) and is not
# reproducible. Build this image once on the runner host and point the
# act_runner label at it, then no job ever touches the network for a toolchain:
#
# docker build -t r8forge-ci:24.04 ci
#
# # ~/.config/act_runner/config.yaml (or the labels in the runner's env)
# labels:
# - ubuntu-latest:docker://r8forge-ci:24.04
#
# # restart act_runner, then check "Last Online Time" in the runner list
#
# Everything a job needs is here: cmake, a C++20 compiler, make. act_runner
# mounts its own node into the container, so the image does not need node.
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq \
&& apt-get install -y -qq --no-install-recommends \
cmake \
g++ \
make \
git \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# A quick smoke of the toolchain, so a broken image fails at build time.
RUN cmake --version | head -1 && g++ --version | head -1