Skip to content

Commit

Permalink
feat: use Leafwing-Studios/cargo-cache for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Jun 14, 2024
1 parent 0e4e22d commit edf4544
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev

Expand All @@ -50,6 +53,9 @@ jobs:

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: Check hide-lines
run: cd write-rustdoc-hide-lines && cargo run --release -- check ../content
Expand All @@ -62,6 +68,9 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev

Expand Down Expand Up @@ -96,6 +105,9 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -134,15 +146,8 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
generate-errors/target/
key: ${{ runner.os }}-generate-errors-${{ hashFiles('generate-errors/Cargo.toml') }}
- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: "Build Bevy Error Codes"
run: >
Expand All @@ -165,6 +170,9 @@ jobs:
with:
target: wasm32-unknown-unknown

- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: "Build Bevy Examples"
run: |
cd generate-wasm-examples &&
Expand All @@ -191,15 +199,8 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
generate-community/target/
key: ${{ runner.os }}-generate-community-${{ hashFiles('generate-community/Cargo.toml') }}
- name: Cache Cargo files
uses: Leafwing-Studios/cargo-cache@v1

- name: "Build Bevy Community"
run: >
Expand Down

0 comments on commit edf4544

Please sign in to comment.