diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 711e381a7c..c87878f1f6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,7 @@ jobs: with: toolchain: stable override: true + - uses: Swatinem/rust-cache@v1 - name: Lint run: bash ci/lint.sh - name: Run ShellCheck diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 6124b89f49..5d57685fa1 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -46,6 +46,7 @@ jobs: with: toolchain: ${{ matrix.rust_version }} override: true + - uses: Swatinem/rust-cache@v1 - name: Build and Test run: bash ci/github.sh @@ -69,6 +70,7 @@ jobs: toolchain: stable target: thumbv6m-none-eabi override: true + - uses: Swatinem/rust-cache@v1 - name: Build no_std lib run: cargo build --target thumbv6m-none-eabi --color=always @@ -90,6 +92,7 @@ jobs: toolchain: stable target: wasm32-unknown-unknown override: true + - uses: Swatinem/rust-cache@v1 - name: Install node uses: actions/setup-node@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe10e03bd7..e439fe7cc2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,6 +55,7 @@ jobs: toolchain: ${{ matrix.rust_version }} override: true + - uses: Swatinem/rust-cache@v1 - name: Build and Test run: bash ci/github.sh env: @@ -78,6 +79,7 @@ jobs: toolchain: stable target: thumbv6m-none-eabi override: true + - uses: Swatinem/rust-cache@v1 - name: Build no_std lib run: cargo build --target thumbv6m-none-eabi --color=always @@ -99,6 +101,7 @@ jobs: toolchain: stable target: wasm32-unknown-unknown override: true + - uses: Swatinem/rust-cache@v1 - name: Install node uses: actions/setup-node@v1 @@ -130,6 +133,8 @@ jobs: - name: Install cross run: bash ci/install-cross.sh + - uses: Swatinem/rust-cache@v1 + - name: Build static library run: cross check --target ${{ matrix.target }}