File tree Expand file tree Collapse file tree 3 files changed +99
-0
lines changed
Expand file tree Collapse file tree 3 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Test
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - uses : actions-rs/toolchain@v1
17+ with :
18+ toolchain : stable
19+ override : true
20+
21+ - name : Install dependencies
22+ run : |
23+ sudo apt-get update
24+ sudo apt-get install -y nasm grub-common xorriso qemu-system-x86
25+
26+ - name : Check
27+ run : cargo check --all
28+
29+ - name : Build (Debug)
30+ run : cargo build --all
31+
32+ - name : Build (Release)
33+ run : cargo build --all --release
34+
35+ - name : Lint with Clippy
36+ run : cargo clippy --all -- -D warnings
37+
38+ - name : Format check
39+ run : cargo fmt --all -- --check
40+
41+ - name : Run tests
42+ run : cargo test --all
43+
44+ - name : Upload artifacts
45+ if : success()
46+ uses : actions/upload-artifact@v3
47+ with :
48+ name : build-artifacts
49+ path : target/release/
Original file line number Diff line number Diff line change 1+ name : Documentation
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+
7+ jobs :
8+ docs :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v3
13+
14+ - uses : actions-rs/toolchain@v1
15+ with :
16+ toolchain : stable
17+ override : true
18+
19+ - name : Build docs
20+ run : cargo doc --all --no-deps
21+
22+ - name : Deploy to GitHub Pages
23+ if : github.ref == 'refs/heads/main'
24+ uses : peaceiris/actions-gh-pages@v3
25+ with :
26+ github_token : ${{ secrets.GITHUB_TOKEN }}
27+ publish_dir : ./target/doc
Original file line number Diff line number Diff line change 1+ name : Security Audit
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+ schedule :
9+ - cron : ' 0 0 * * 0' # Weekly on Sunday
10+
11+ jobs :
12+ audit :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ issues : write # Required for the audit action to create issues
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Run security audit
20+ uses : actions-rust-lang/audit@v1
21+ # with:
22+ # ignore: RUSTSEC-2020-0036
23+ # token: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments