mirror of https://github.com/lapce/lapce.git
Merge pull request #645 from TaKO8Ki/add-step-for-caching
Speed up CI workflows
This commit is contained in:
commit
0c8ac37bdf
|
@ -27,6 +27,8 @@ jobs:
|
|||
profile: minimal
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
@ -48,6 +50,7 @@ jobs:
|
|||
toolchain: stable
|
||||
override: true
|
||||
- run: rustup component add rustfmt
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
|
@ -66,6 +69,7 @@ jobs:
|
|||
- run: rustup component add clippy
|
||||
- name: Install dependencies on Ubuntu
|
||||
run: sudo apt-get update && sudo apt-get install cmake pkg-config libgtk-3-dev
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
|
|
|
@ -27,6 +27,8 @@ jobs:
|
|||
profile: minimal
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
|
@ -43,6 +45,7 @@ jobs:
|
|||
toolchain: stable
|
||||
override: true
|
||||
- run: rustup component add rustfmt
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
|
|
Loading…
Reference in New Issue