fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
fe8037a
livekit/livekit-ffi@0.13.0
1name : Rust Formatting 2 3on : 4workflow_dispatch : 5push : 6branches : [ main ] 7pull_request : 8branches : [ main ] 9types : 10- opened 11- reopened 12- synchronize 13- ready_for_review 14 15env : 16CARGO_TERM_COLOR : always 17 18jobs : 19formatting : 20name : Check Formatting 21runs-on : ubuntu-latest 22if : github.event_name == 'push' || !github.event.pull_request.draft 23 24steps : 25- name : Checkout the repo 26uses : actions/checkout@v3 27 28- name : Install Rust 29uses : dtolnay/rust-toolchain@master 30with : 31toolchain : nightly-2023-12-30 32components : rustfmt 33 34- name : Check workspace versions match 35run : | 36cargo metadata --format-version=1 --no-deps | 37jq -e -r '.packages[] | "\(.name) \(.version)"' | 38sort | xargs -l bash -c \ 39'grep "$0 = { version = \"$1\"" -q Cargo.toml && printf "version %-7s %-27s $0\n" $1 "matches package" || printf "version %-7s is not reflected on package $0\n" "$1" | false'; 40if [ $? -eq 0 ]; then exit 0; else exit 1; fi 41 42- name : Cargo fmt 43run : | 44 cargo fmt -- --check