chore: setup rust in self-hosted runner
@@ -8,6 +8,7 @@ on:
# This event occurs when a GitHub Actions workflow is manually triggered.
# For more information, see
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
+ # Note: Write access to the repository is required to perform these steps.
workflow_dispatch:
inputs:
runner_type:
@@ -54,8 +55,21 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-
- - name: Install Rust components
- run: rustup component add rustfmt && rustup component add clippy
+ # - name: Install rustup from https://rustup.rs
+ # run: |
+ # which rustup \
+ # || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
+ # | sh -s -- --profile minimal --default-toolchain none -y \
+ # && source "$HOME/.cargo/env"
+ # rustup --version
+ # which rustup
+
+ # https://github.com/ATiltedTree/setup-rust
+ - uses: ATiltedTree/setup-rust@v1
+ with:
+ rust-version: nightly
+ components: rustfmt clippy
+
- name: Install moleculec
run: |
test "$(moleculec --version)" = "Moleculec 0.7.2" \
