File tree Expand file tree Collapse file tree 9 files changed +2237
-87
lines changed Expand file tree Collapse file tree 9 files changed +2237
-87
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,24 @@ jobs:
108108 - name : 📥 Clone and checkout repository
109109 uses : actions/checkout@v3
110110
111- - name : 🔒 Check crate security advisories
111+ - name : 🔒 Check crate security advisories for root workspace
112112 uses : EmbarkStudios/cargo-deny-action@v1
113113 with :
114114 command : check advisories
115115
116- - name : 📜 Check crate license compatibility
116+ - name : 🔒 Check crate security advisories for /libraries/raw-rs
117+ uses : EmbarkStudios/cargo-deny-action@v1
118+ with :
119+ command : check advisories
120+ manifest-path : libraries/raw-rs/Cargo.toml
121+
122+ - name : 📜 Check crate license compatibility for root workspace
123+ uses : EmbarkStudios/cargo-deny-action@v1
124+ with :
125+ command : check bans licenses sources
126+
127+ - name : 📜 Check crate license compatibility for /libraries/raw-rs
117128 uses : EmbarkStudios/cargo-deny-action@v1
118129 with :
119130 command : check bans licenses sources
131+ manifest-path : libraries/raw-rs/Cargo.toml
Original file line number Diff line number Diff line change 3232 - name : Run Clippy
3333 id : clippy
3434 run : |
35- # Run Clippy and filter output
35+ # Run Clippy and filter output for the root workspace
3636 CLIPPY_OUTPUT=$(cargo clippy --all-targets --all-features -- -W clippy::all 2>&1 | grep -vE "^(\s*Updating|\s*Download|\s*Compiling|\s*Checking|Finished)")
37+
38+ # Run Clippy and filter output for /libraries/raw-rs
39+ cd libraries/raw-rs
40+ CLIPPY_OUTPUT+=$'\n\n'
41+ CLIPPY_OUTPUT+=$(cargo clippy --all-targets --all-features -- -W clippy::all 2>&1 | grep -vE "^(\s*Updating|\s*Download|\s*Compiling|\s*Checking|Finished)")
42+ cd ../..
43+
3744 # Escape special characters for JSON
3845 ESCAPED_OUTPUT=$(echo "$CLIPPY_OUTPUT" | jq -sR .)
3946 echo "CLIPPY_OUTPUT=$ESCAPED_OUTPUT" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 1+ name : " Library: Raw-rs"
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - " libraries/raw-rs/**"
9+ pull_request :
10+ branches :
11+ - master
12+ paths :
13+ - " libraries/raw-rs/**"
14+
15+ env :
16+ CARGO_TERM_COLOR : always
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ permissions :
22+ contents : read
23+ env :
24+ SCCACHE_GHA_ENABLED : " true"
25+ RUSTC_WRAPPER : " sccache"
26+ CARGO_INCREMENTAL : 0
27+ SCCACHE_DIR : /var/lib/github-actions/.cache
28+
29+ steps :
30+ - name : 📥 Clone and checkout repository
31+ uses : actions/checkout@v3
32+
33+ - name : 🦀 Install the latest Rust
34+ run : |
35+ echo "Initial system version:"
36+ rustc --version
37+ rustup update stable
38+ echo "Latest updated version:"
39+ rustc --version
40+
41+ - name : 📦 Run sccache-cache
42+ uses :
mozilla-actions/[email protected] 43+
44+ - name : 🔬 Check Rust formatting
45+ run : |
46+ cd libraries/raw-rs
47+ cargo fmt --all -- --check
48+
49+ - name : 🦀 Build Rust code
50+ run : |
51+ cd libraries/raw-rs
52+ cargo build --release --all-features
53+
54+ - name : 🧪 Run Rust tests
55+ run : |
56+ cd libraries/raw-rs
57+ cargo test --release --all-features
58+
59+ - name : 📈 Run sccache stat for check
60+ shell : bash
61+ run : sccache --show-stats
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ members = [
1818 " libraries/dyn-any" ,
1919 " libraries/path-bool" ,
2020 " libraries/bezier-rs" ,
21- " libraries/raw-rs" ,
22- " libraries/raw-rs/tag-derive" ,
23- " libraries/raw-rs/build-camera-data" ,
2421 " website/other/bezier-rs-demos/wasm" ,
2522]
2623exclude = [" node-graph/gpu-compiler" ]
You can’t perform that action at this time.
0 commit comments