Files
R8Forge/.gitea/workflows/ci.yml
T
dsh 3c427bb8a5
ci / cell 16 (push) Skipped
ci / cell 32 (push) Skipped
ci / cell 8 (push) Skipped
ci / wide sweep (manual) (11) (push) Skipped
ci / wide sweep (manual) (16) (push) Skipped
ci / wide sweep (manual) (24) (push) Skipped
ci / wide sweep (manual) (32) (push) Skipped
ci / wide sweep (manual) (8) (push) Skipped
ci / cold cache (manual) (push) Skipped
ci / baseline (11 bit) (push) Failing after 15s
ci: cancel the previous run of the same ref when a new push arrives
One runner means a push that lands while an older one is still building waits for
it.  Cancel-in-progress keeps the queue at one entry per branch; a manual sweep is
still only cancelled by another push on the same ref.
2026-11-10 19:44:36 +08:00

96 lines
3.2 KiB
YAML

# 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
- 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
- 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
- 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
- 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