Repository navigation
55 lines (50 loc) · 1.82 KB
/
Copy pathci.yml
File metadata and controls
55 lines (50 loc) · 1.82 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
# Runs the test suite on macOS, Linux and Windows for every push and pull request,
# plus a Windows smoke test of the setup wizard / --reset against HKCU\Environment
# (the only Windows-specific code path, otherwise never executed on developer Macs).
name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace
- name: Windows smoke test (wizard + --reset)
if: runner.os == 'Windows'
shell: pwsh
run: |
cargo build -p agentiloop
pwsh scripts/windows-smoke.ps1 -Binary .\target\debug\agentiloop.exe
# Builds this repo and its Go twin (AgentiLoopGo, main) and runs scripts/parity.py:
# flags, /help, provider requests, --json/--stream-json output and session files
# must match, and each binary must resume the other's sessions.
parity:
name: parity (Rust ↔ Go)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: AgentiLoop/AgentiLoopGo
path: AgentiLoopGo
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-go@v5
with:
go-version-file: AgentiLoopGo/go.mod
cache-dependency-path: AgentiLoopGo/go.sum
- run: cargo build -p agentiloop
- run: cd AgentiLoopGo && go build -o agentiloop ./cmd/agentiloop
- run: python3 scripts/parity.py --rust target/debug/agentiloop --go AgentiLoopGo/agentiloop --go-src AgentiLoopGo