Skip to content

Commit 9fb621e

Browse files
Merge pull request #14 from SolidLabResearch/codex/ci-fast-pr-release-split
[codex] split fast PR and release workflows
2 parents 9b9f8a0 + a2a9a24 commit 9fb621e

5 files changed

Lines changed: 241 additions & 277 deletions

File tree

.github/CICD_GUIDE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Janus project uses GitHub Actions for continuous integration and deployment.
1515
### Manual Trigger
1616

1717
```bash
18-
# Via GitHub UI: Actions tab → CI/CD Pipeline → Run workflow
18+
# Via GitHub UI: Actions tab → choose `Fast PR Checks` or `Release And Extended CI` → Run workflow
1919
```
2020

2121
## Jobs Overview
@@ -313,7 +313,8 @@ Common issues:
313313

314314
### Main Configuration
315315

316-
- `.github/workflows/ci.yml` - Main pipeline
316+
- `.github/workflows/fast-pr.yml` - Fast pull request validation
317+
- `.github/workflows/release.yml` - Extended branch, release, and scheduled checks
317318

318319
### Supporting Files
319320

@@ -355,4 +356,4 @@ Common issues:
355356
- Simplified from 9 jobs to 5-6 jobs
356357
- Reduced pipeline time by ~70%
357358
- Added dependency review for PRs
358-
- Updated publish job to remove Rust dependencies
359+
- Updated publish job to remove Rust dependencies

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ make fmt # Format all code
5757
make clippy # Lint checks
5858
```
5959

60-
**CI Pipeline:** GitHub Actions runs `rustfmt`, `clippy`, and tests on Ubuntu/Windows/macOS with stable/beta Rust. See `.github/workflows/ci.yml`.
60+
**CI Pipeline:** GitHub Actions runs fast PR checks from `.github/workflows/fast-pr.yml` and extended push/release checks from `.github/workflows/release.yml`.
6161

6262
### Benchmarking
6363

.github/workflows/ci.yml

Lines changed: 0 additions & 273 deletions
This file was deleted.

.github/workflows/fast-pr.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Fast PR Checks
2+
3+
on:
4+
pull_request:
5+
branches: [main, develop]
6+
paths-ignore:
7+
- "**/*.md"
8+
- "docs/**"
9+
10+
concurrency:
11+
group: fast-pr-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
CARGO_TERM_COLOR: always
16+
17+
jobs:
18+
fmt:
19+
name: Rustfmt
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Install Rust toolchain
26+
uses: dtolnay/rust-toolchain@stable
27+
with:
28+
components: rustfmt
29+
30+
- name: Check formatting
31+
run: cargo fmt --all -- --check
32+
33+
clippy:
34+
name: Clippy
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
40+
- name: Install Rust toolchain
41+
uses: dtolnay/rust-toolchain@stable
42+
with:
43+
components: clippy
44+
45+
- name: Cache Rust build artifacts
46+
uses: Swatinem/rust-cache@v2
47+
48+
- name: Run Clippy
49+
run: cargo clippy --all-targets --all-features -- -D warnings
50+
51+
test:
52+
name: Test Suite
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
58+
- name: Install Rust toolchain
59+
uses: dtolnay/rust-toolchain@stable
60+
61+
- name: Cache Rust build artifacts
62+
uses: Swatinem/rust-cache@v2
63+
64+
- name: Run tests
65+
run: cargo test --all-features --verbose
66+
67+
- name: Run doc tests
68+
run: cargo test --doc --all-features --verbose

0 commit comments

Comments
 (0)