Skip to content

Commit

Permalink
Raw-rs: Remove from workspace (#2066)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
elbertronnie and Keavon authored Oct 25, 2024
1 parent 36fe9bf commit 9d13a8f
Show file tree
Hide file tree
Showing 9 changed files with 2,237 additions and 87 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build-dev-and-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,24 @@ jobs:
- name: 📥 Clone and checkout repository
uses: actions/checkout@v3

- name: 🔒 Check crate security advisories
- name: 🔒 Check crate security advisories for root workspace
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check advisories

- name: 📜 Check crate license compatibility
- name: 🔒 Check crate security advisories for /libraries/raw-rs
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check advisories
manifest-path: libraries/raw-rs/Cargo.toml

- name: 📜 Check crate license compatibility for root workspace
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources

- name: 📜 Check crate license compatibility for /libraries/raw-rs
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
manifest-path: libraries/raw-rs/Cargo.toml
9 changes: 8 additions & 1 deletion .github/workflows/comment-clippy-warnings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ jobs:
- name: Run Clippy
id: clippy
run: |
# Run Clippy and filter output
# Run Clippy and filter output for the root workspace
CLIPPY_OUTPUT=$(cargo clippy --all-targets --all-features -- -W clippy::all 2>&1 | grep -vE "^(\s*Updating|\s*Download|\s*Compiling|\s*Checking|Finished)")
# Run Clippy and filter output for /libraries/raw-rs
cd libraries/raw-rs
CLIPPY_OUTPUT+=$'\n\n'
CLIPPY_OUTPUT+=$(cargo clippy --all-targets --all-features -- -W clippy::all 2>&1 | grep -vE "^(\s*Updating|\s*Download|\s*Compiling|\s*Checking|Finished)")
cd ../..
# Escape special characters for JSON
ESCAPED_OUTPUT=$(echo "$CLIPPY_OUTPUT" | jq -sR .)
echo "CLIPPY_OUTPUT=$ESCAPED_OUTPUT" >> $GITHUB_OUTPUT
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/library-raw-rs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: "Library: Raw-rs"

on:
push:
branches:
- master
paths:
- "libraries/raw-rs/**"
pull_request:
branches:
- master
paths:
- "libraries/raw-rs/**"

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CARGO_INCREMENTAL: 0
SCCACHE_DIR: /var/lib/github-actions/.cache

steps:
- name: 📥 Clone and checkout repository
uses: actions/checkout@v3

- name: 🦀 Install the latest Rust
run: |
echo "Initial system version:"
rustc --version
rustup update stable
echo "Latest updated version:"
rustc --version
- name: 📦 Run sccache-cache
uses: mozilla-actions/[email protected]

- name: 🔬 Check Rust formatting
run: |
cd libraries/raw-rs
cargo fmt --all -- --check
- name: 🦀 Build Rust code
run: |
cd libraries/raw-rs
cargo build --release --all-features
- name: 🧪 Run Rust tests
run: |
cd libraries/raw-rs
cargo test --release --all-features
- name: 📈 Run sccache stat for check
shell: bash
run: sccache --show-stats
70 changes: 0 additions & 70 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ members = [
"libraries/dyn-any",
"libraries/path-bool",
"libraries/bezier-rs",
"libraries/raw-rs",
"libraries/raw-rs/tag-derive",
"libraries/raw-rs/build-camera-data",
"website/other/bezier-rs-demos/wasm",
]
exclude = ["node-graph/gpu-compiler"]
Expand Down
Loading

0 comments on commit 9d13a8f

Please sign in to comment.