Skip to content

Commit 9d13a8f

Browse files
elbertronnieKeavon
andauthored
Raw-rs: Remove from workspace (#2066)
* Remove raw-rs from workspace * Add feature blocking to reqwest * Use release build to run the tests * Split Raw-rs CI into a seperate workflow * Fix cargo-deny check for Raw-rs * Only run the CI if Raw-rs changes * Enable clippy check for Raw-rs * Add newline in clippy check * Fixups * Use ubuntu-latest * Remove mold * Install sccache * Attempt 2 * Attempt 3 * Add emoji for consistency --------- Co-authored-by: Keavon Chambers <[email protected]>
1 parent 36fe9bf commit 9d13a8f

File tree

9 files changed

+2237
-87
lines changed

9 files changed

+2237
-87
lines changed

.github/workflows/build-dev-and-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/comment-clippy-warnings.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ jobs:
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
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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

Cargo.lock

Lines changed: 0 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
]
2623
exclude = ["node-graph/gpu-compiler"]

0 commit comments

Comments
 (0)