-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.37 KB
/
ci.yml
File metadata and controls
55 lines (43 loc) · 1.37 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
55
# Sentinel Foundation — CI Pipeline
# Ensures code quality, no_std compliance, and WASM build stability.
# Structured for future scheduled (cron) trigger for repo-monitoring.
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
# Sentinel groundwork: uncomment for automated drift detection
# schedule:
# - cron: '0 0 * * *' # Daily at midnight UTC
jobs:
test_and_lint:
name: Core Library Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format Check
run: cargo fmt --all -- --check
- name: Lint Check
run: cargo clippy --all-targets -- -D warnings
- name: Math Check
run: cargo test --all
- name: Sovereignty Check
run: cargo check --no-default-features --features=wasm
wasm_build:
name: Web Engine Stability
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl -sSf https://rustwasm.github.io/wasm-pack/installer.sh | sh
- name: Build Check
run: cd wasm-vpack && wasm-pack build --target web