Commit b384f30
committed
CI: Harden security and tweak performance
This improves CI/CD pipeline for better security, resource efficiency,
and reliability.
- Add minimal GitHub token permissions (contents:read, actions:read)
- Add concurrency control to cancel redundant workflow runs
- Add job-level and step-level timeouts across all workflows
Performance Optimizations:
- Add APT package caching for Linux runners
- Add RISC-V toolchain caching with platform-specific keys
- Add build artifacts caching (softfloat, mini-gdbstub, build/)
- Enable recursive submodule checkout for dependency caching
- Use -q flag for wget to reduce noise
Timeout breakdown:
- Checkout: 2 minutes
- Cache operations: 2 minutes
- Dependency installation: 10-15 minutes
- Build tests: 10-30 minutes (depending on complexity)
- System tests: 15 minutes
- Full jobs: 60-180 minutes1 parent 9f4e579 commit b384f30
File tree
6 files changed
+217
-71
lines changed- .github/workflows
- mk
6 files changed
+217
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 50 | + | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
| 154 | + | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
0 commit comments