2023-09-14 10:30:38 +03:00
|
|
|
name: init-rust
|
|
|
|
description: prepare runner for rust related tasks
|
2023-09-14 09:54:23 +03:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Cache rust dependencies
|
2023-10-19 15:30:35 +03:00
|
|
|
if: runner.name != 'ScottsMacStudio' # internet in berlin is very slow
|
2023-09-14 09:54:23 +03:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2024-01-19 03:47:19 +03:00
|
|
|
with:
|
|
|
|
prefix-key: gitbutler-client
|
|
|
|
shared-key: rust
|
2023-10-19 13:50:24 +03:00
|
|
|
|
2024-02-08 18:50:10 +03:00
|
|
|
- name: Check versions
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
rustc --version
|
|
|
|
cargo --version
|
|
|
|
cargo fmt --version
|
|
|
|
cargo clippy --version
|
|
|
|
git --version
|
|
|
|
which git-upload-pack
|
|
|
|
which git-upload-archive
|
|
|
|
which git-receive-pack
|
|
|
|
ssh -V
|