Update workflow action rust install step

This commit is contained in:
Filip Tibell 2023-02-23 21:05:25 +01:00
parent 58ecbdb121
commit 428be1e0f4
No known key found for this signature in database
4 changed files with 7 additions and 24 deletions

View file

@ -13,10 +13,8 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Rustfmt

View file

@ -15,11 +15,7 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
uses: dtolnay/rust-toolchain@stable
- name: Publish to crates.io
uses: katyo/publish-crates@v2

View file

@ -50,7 +50,7 @@ jobs:
file-type: "application/x-luau"
- name: Luau LSP documentation
cargo-args: "--generate-luau-types --generate-docs-file"
cargo-args: "--generate-docs-file"
file-name: "luneDocs.json"
file-type: "application/json"
@ -61,11 +61,7 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
uses: dtolnay/rust-toolchain@stable
- name: Generate file
run: cargo run --package lune-cli -- ${{ matrix.cargo-args }}
@ -107,12 +103,9 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: ${{ matrix.cargo-target }}
override: true
profile: minimal
targets: ${{ matrix.cargo-target }}
- name: Build binary
run: cargo build --package lune-cli --locked --release --all-features --target ${{ matrix.cargo-target }}

View file

@ -18,11 +18,7 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
uses: dtolnay/rust-toolchain@stable
- name: Build CLI
shell: bash