gitbutler/.github/actions/init-env-rust/action.yaml
Sebastian Thiel ad3e15dae4
Avoid using nightly by default.
Instead, use it only where needed, which at this time is Windows
for some nightly-only access to file-descriptors.
2024-07-27 14:35:26 +02:00

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.nightly 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