Repository navigation
54 lines (43 loc) · 1.36 KB
/
Copy pathci.yml
File metadata and controls
54 lines (43 loc) · 1.36 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
name: Vantage Native Integrity
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify:
name: Integrity Check (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Security Guard (.kit invariant)
shell: bash
run: |
if git ls-files | grep -qF ".kit"; then
echo "❌ SECURITY VIOLATION: .kit tracked in Git tree."
exit 1
fi
- name: Install System Dependencies (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y libglib2.0-dev pkg-config libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Setup Rust (Stable)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build Vantage CLI (Release)
run: cargo build --release
- name: Run Native Rust Tests
run: cargo test --all
- name: Integrity Check (Linux/Bash)
if: runner.os != 'Windows'
run: bash scripts/integrity_check.sh
- name: Integrity Check (Windows/PWSH)
if: runner.os == 'Windows'
run: pwsh scripts/integrity_check.ps1