-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (61 loc) · 1.89 KB
/
run-program.yml
File metadata and controls
67 lines (61 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run program
run-name: "[${{ inputs.model }}] ${{ inputs.program }} ${{ inputs.extra }} ${{ inputs.flags }}"
on:
workflow_dispatch:
inputs:
program:
description: "Program directory under programs/ (e.g. arithmetic-2026-cross-memo)"
required: true
type: choice
options:
- arithmetic
- arithmetic-tape
- arithmetic-2026
- arithmetic-2026-cross
- arithmetic-2026-cross-memo
- arithmetic-2026-cross-slide
- arithmetic-2026-karatsuba
- arithmetic-2026-kara-memo
- automata
- game-of-life
- ab
- sha256
model:
description: "Model slug"
required: false
default: "anthropic/claude-opus-4.6"
type: string
extra:
description: "Trailing positional args (space-separated, e.g. \"16 16\")"
required: false
default: ""
type: string
flags:
description: "Extra CLI flags (e.g. \"--chunk=2 --n=1\")"
required: false
default: ""
type: string
jobs:
run:
name: ${{ inputs.program }} @ ${{ inputs.model }}
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/cache@v4
with:
path: "**/node_modules"
key: packages-${{ hashFiles('**/bun.lockb') }}
restore-keys: packages-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run
env:
AI_GATEWAY_API_KEY: ${{ secrets.AI_GATEWAY_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
bun programs/${{ inputs.program }} ${{ inputs.model }} ${{ inputs.extra }} ${{ inputs.flags }}