gitbutler/.github/actions/init-env-rust/action.yaml

28 lines
697 B
YAML

name: init-rust
description: prepare runner for rust related tasks
runs:
using: "composite"
steps:
- name: Setup Nightly
if: runner.os == 'Windows'
shell: bash
run: |
mv rust-toolchain.toml.windows rust-toolchain.toml
- name: Setup Stable
if: runner.os != 'Windows'
shell: bash
run: |
mv rust-toolchain.toml.stable rust-toolchain.toml
- 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