Skip to content

Commit

Permalink
Take advantage of Rust reimplementation of Git in Cargo (gitoxide) an…
Browse files Browse the repository at this point in the history
…d shallow clones
  • Loading branch information
nazar-pc committed Jan 19, 2024
1 parent adbf8fc commit bce2e87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ jobs:
${{ runner.os }}-cargo-
- name: cargo clippy
uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # @v1.0.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --locked --all-targets --features "runtime-benchmarks" -- -D warnings
run: |
cargo -Zgitoxide -Zgit clippy --locked --all-targets --features "runtime-benchmarks" -- -D warnings
cargo-docs:
runs-on: ${{ fromJson(github.repository_owner == 'subspace' && '["self-hosted", "ubuntu-20.04-x86-64"]' || '"ubuntu-22.04"') }}
Expand All @@ -141,7 +139,7 @@ jobs:
${{ runner.os }}-cargo-
- name: Check Documentation
run: cargo doc --locked --all --no-deps --lib
run: cargo -Zgitoxide -Zgit doc --locked --all --no-deps --lib
env:
RUSTDOCFLAGS: "-D rustdoc::broken-intra-doc-links -D rustdoc::private_intra_doc_links"

Expand Down Expand Up @@ -207,7 +205,5 @@ jobs:
tool: cargo-nextest

- name: cargo nextest run --locked
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # @v1.0.1
with:
command: nextest
args: run --locked
run: |
cargo -Zgitoxide -Zgit nextest run --locked
2 changes: 1 addition & 1 deletion .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# Build the rust crate docs
- name: Build Documentation
run: cargo doc --all --no-deps --lib
run: cargo -Zgitoxide -Zgit doc --all --no-deps --lib
env:
RUSTDOCFLAGS: "-Z unstable-options --enable-index-page"

Expand Down

0 comments on commit bce2e87

Please sign in to comment.