ci: add caching to build.yml

This commit is contained in:
dundargoc 2024-02-05 00:25:31 +01:00
parent 3fcad25bd3
commit fdd0e21041

View file

@ -98,11 +98,9 @@ jobs:
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
toolchain: 'stable'
- run: rustup toolchain install stable --profile minimal
- run: rustup target add ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Install cross
if: ${{ matrix.use-cross }}