Skip to content

Upkeep - Update Cache #15

Upkeep - Update Cache

Upkeep - Update Cache #15

Workflow file for this run

name: Upkeep - Update Cache
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_PROFILE_DEV_DEBUG: 0
jobs:
build-cache:
name: Build Cache
runs-on: ubuntu-latest
steps:
- name: Checkout Bevy main branch
uses: actions/checkout@v4
with:
repository: "bevyengine/bevy"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Bevy dependencies
run: |
sudo apt-get update;
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -yq libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev
- name: Build an example (Linux)
run: |
cargo build -p bevy --all-features
cargo clippy -p bevy --all-features
- name: Save cache
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ hashFiles('**/Cargo.toml') }}