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
name: CI
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
# Comprehensive CI validation in Docker (matches local environment exactly)
ci:
name: CI Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Cache Docker layers for faster subsequent builds
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-docker-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-docker-
# Cache Cargo registry (mounted into container)
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- run: make ci