mirror of
https://github.com/huggingface/xet-core.git
synced 2026-06-04 13:30:29 +08:00
run cargo fmt on everything (#59)
* run cargo fmt on everything * standard rustfmt.toml * format with nightly toolchain * format in CI * fix issue * fix hf_xet
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -10,8 +10,22 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
|
||||
jobs:
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
runs-on:
|
||||
group: cpu-low
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: rustfmt
|
||||
- name: Format
|
||||
run: |
|
||||
cargo fmt --manifest-path ./Cargo.toml --all -- --check
|
||||
cargo fmt --manifest-path ./hf_xet/Cargo.toml --all -- --check
|
||||
|
||||
build_and_test:
|
||||
runs-on:
|
||||
group: cpu-high
|
||||
|
||||
Reference in New Issue
Block a user