mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Use just command for setting up toolchain
This commit is contained in:
parent
64e0c8de9e
commit
704bb25818
4
.github/actions/check/action.yml
vendored
4
.github/actions/check/action.yml
vendored
@ -5,7 +5,9 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: extractions/setup-just@v1
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just default-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Format
|
||||
shell: bash
|
||||
|
||||
5
.github/actions/desktop/action.yml
vendored
5
.github/actions/desktop/action.yml
vendored
@ -4,7 +4,10 @@ description: Build for desktop
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just default-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
|
||||
5
.github/actions/docs/action.yml
vendored
5
.github/actions/docs/action.yml
vendored
@ -4,7 +4,10 @@ description: Build documentation
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just default-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Install mdbook
|
||||
shell: bash
|
||||
|
||||
4
justfile
4
justfile
@ -22,6 +22,10 @@ fmt: install-rustfmt
|
||||
fmt-check: install-rustfmt
|
||||
cargo fmt --all -- --check
|
||||
|
||||
default-toolchain:
|
||||
# Setups the toolchain from rust-toolchain.toml
|
||||
cargo --version > /dev/null
|
||||
|
||||
nightly-toolchain:
|
||||
rustup install $NIGHTLY_TOOLCHAIN
|
||||
rustup component add rust-src --toolchain $NIGHTLY_TOOLCHAIN
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user