mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Refactor rust cache
This commit is contained in:
parent
a430b600fe
commit
e6c212585e
11
.github/actions/android/action.yml
vendored
11
.github/actions/android/action.yml
vendored
@ -4,16 +4,7 @@ description: Build for android
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Install just
|
||||
shell: bash
|
||||
run: cargo install just
|
||||
|
||||
1
.github/actions/check/action.yml
vendored
1
.github/actions/check/action.yml
vendored
@ -4,6 +4,7 @@ description: Check
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Install just
|
||||
shell: bash
|
||||
run: cargo install just
|
||||
|
||||
11
.github/actions/desktop/action.yml
vendored
11
.github/actions/desktop/action.yml
vendored
@ -4,16 +4,7 @@ description: Build for desktop
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
|
||||
|
||||
11
.github/actions/docs/action.yml
vendored
11
.github/actions/docs/action.yml
vendored
@ -4,16 +4,7 @@ description: Build documentation
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Install mdbook
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
15
.github/actions/rust-cache/action.yml
vendored
Normal file
15
.github/actions/rust-cache/action.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: rust-cache
|
||||
description: Cache for rust
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
key: ${{ runner.os }}-cargo
|
||||
11
.github/actions/webgl/action.yml
vendored
11
.github/actions/webgl/action.yml
vendored
@ -4,16 +4,7 @@ description: Build for webgl
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Install just
|
||||
shell: bash
|
||||
run: cargo install just
|
||||
|
||||
11
.github/actions/webgpu/action.yml
vendored
11
.github/actions/webgpu/action.yml
vendored
@ -4,16 +4,7 @@ description: Build for webgpu
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Install just
|
||||
shell: bash
|
||||
run: cargo install just
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user