forked from extern/nushell
make ci use rust-toolchain.toml (#6305)
* make ci use rust-toolchain.toml * update ci to use actions-rust-lang/setup-rust-toolchain@v1
This commit is contained in:
parent
ae64c58f59
commit
2da915d0c7
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
@ -23,12 +23,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
# makes ci use rust-toolchain.toml
|
||||||
profile: minimal
|
# with:
|
||||||
toolchain: ${{ matrix.rust }}
|
# profile: minimal
|
||||||
override: true
|
# toolchain: ${{ matrix.rust }}
|
||||||
components: rustfmt, clippy
|
# override: true
|
||||||
|
# components: rustfmt, clippy
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
with:
|
with:
|
||||||
@ -74,11 +75,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
# makes ci use rust-toolchain.toml
|
||||||
profile: minimal
|
# with:
|
||||||
toolchain: ${{ matrix.rust }}
|
# profile: minimal
|
||||||
override: true
|
# toolchain: ${{ matrix.rust }}
|
||||||
|
# override: true
|
||||||
|
|
||||||
# Temporarily disabled; the cache was getting huge (2.6GB compressed) on Windows and causing issues.
|
# Temporarily disabled; the cache was getting huge (2.6GB compressed) on Windows and causing issues.
|
||||||
# TODO: investigate why the cache was so big
|
# TODO: investigate why the cache was so big
|
||||||
@ -111,11 +113,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
# makes ci use rust-toolchain.toml
|
||||||
profile: minimal
|
# with:
|
||||||
toolchain: ${{ matrix.rust }}
|
# profile: minimal
|
||||||
override: true
|
# toolchain: ${{ matrix.rust }}
|
||||||
|
# override: true
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
with:
|
with:
|
||||||
@ -135,7 +138,7 @@ jobs:
|
|||||||
- run: python -m pip install tox
|
- run: python -m pip install tox
|
||||||
|
|
||||||
- name: Install virtualenv
|
- name: Install virtualenv
|
||||||
run: git clone https://github.com/pypa/virtualenv.git
|
run: git clone https://github.com/pypa/virtualenv.git
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Test Nushell in virtualenv
|
- name: Test Nushell in virtualenv
|
||||||
@ -161,11 +164,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
# makes ci use rust-toolchain.toml
|
||||||
profile: minimal
|
# with:
|
||||||
toolchain: ${{ matrix.rust }}
|
# profile: minimal
|
||||||
override: true
|
# toolchain: ${{ matrix.rust }}
|
||||||
|
# override: true
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user