ci: Cache Cargo output on Github Actions

Co-authored-by: Mike Welsh <mwelsh@gmail.com>
This commit is contained in:
Aaron Hill 2022-08-26 13:38:58 -05:00 committed by Mike Welsh
parent 1a7c5339a7
commit 3417dceca2
2 changed files with 10 additions and 0 deletions

View File

@ -58,6 +58,11 @@ jobs:
sudo apt-get dist-upgrade
sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev mesa-vulkan-drivers
- name: Cache Cargo output
uses: Swatinem/rust-cache@90429b3dea365e9a1b0cb82d7f98aabf3089dc63
with:
shared-key: "desktop"
- name: Check formatting
uses: actions-rs/cargo@v1
with:

View File

@ -52,6 +52,11 @@ jobs:
toolchain: ${{ matrix.rust_version }}
target: wasm32-unknown-unknown
- name: Cache Cargo output
uses: Swatinem/rust-cache@90429b3dea365e9a1b0cb82d7f98aabf3089dc63
with:
shared-key: "web"
# wasm-bindgen-cli version must match wasm-bindgen crate version.
# Be sure to update in release_nightly.yml, web/Cargo.toml and web/README.md.
- name: Install wasm-bindgen