Skip to content

Commit

Permalink
ci: Cache Cargo output on Github Actions
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Welsh <mwelsh@gmail.com>
  • Loading branch information
Aaron1011 and Herschel committed Aug 30, 2022
1 parent 1a7c533 commit 5ae0aa7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ pub use player::{Player, PlayerBuilder, StaticCallstack};
pub use ruffle_render::backend::ViewportDimensions;
pub use swf;
pub use swf::Color;

pub fn bar() {}

0 comments on commit 5ae0aa7

Please sign in to comment.