feat(ci): improve cache usage

This commit is contained in:
Lucas Nogueira 2022-11-05 13:14:56 -03:00
parent 60e08605d5
commit 777c086590
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
4 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,7 @@ jobs:
with: with:
toolchain: ${{ matrix.rust }} toolchain: ${{ matrix.rust }}
override: true override: true
default: true
components: rust-src components: rust-src
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}

View File

@ -67,6 +67,7 @@ jobs:
with: with:
toolchain: stable toolchain: stable
override: true override: true
default: true
target: ${{ matrix.target.name }} target: ${{ matrix.target.name }}
- name: Setup node - name: Setup node

View File

@ -40,6 +40,8 @@ jobs:
toolchain: stable toolchain: stable
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with:
workspaces: tooling/bundler
- name: test - name: test
run: | run: |
@ -76,6 +78,7 @@ jobs:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
override: true override: true
default: true
components: rustfmt, clippy components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2

View File

@ -56,6 +56,8 @@ jobs:
toolchain: ${{ matrix.platform.toolchain }} toolchain: ${{ matrix.platform.toolchain }}
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
override: true override: true
default: true
- name: install Linux dependencies - name: install Linux dependencies
if: contains(matrix.platform.target, 'unknown-linux') if: contains(matrix.platform.target, 'unknown-linux')
run: | run: |