-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.11 KB
/
upkeep-cache.yml
File metadata and controls
46 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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') }}