Merge pull request #609 from Milo123459/ci-caching

This commit is contained in:
Milo 2021-10-26 10:12:08 +01:00 committed by GitHub
commit f4f5c2fa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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 }}