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 uses: actions/checkout@v3
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable
override: true
components: rustfmt, clippy components: rustfmt, clippy
- name: Rustfmt - name: Rustfmt

View file

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

View file

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