mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add cache
This commit is contained in:
parent
33de02e999
commit
81730c4485
38
.github/workflows/rust.yml
vendored
38
.github/workflows/rust.yml
vendored
@ -15,8 +15,17 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Dependencies
|
||||
run: apt install -y libwayland-client++0
|
||||
run: sudo apt-get install -y libwayland-client++0
|
||||
- name: Build
|
||||
run: cargo build --bin mapr
|
||||
- uses: actions/upload-artifact@v2
|
||||
@ -33,6 +42,15 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: tools/build-android
|
||||
- uses: actions/upload-artifact@v2
|
||||
@ -50,6 +68,15 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Prepare Rust Toolchain # This is required because we are recompiling the stdlib
|
||||
run: |
|
||||
rustup install nightly-2021-12-07-x86_64-unknown-linux-gnu
|
||||
@ -77,6 +104,15 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install mdbook
|
||||
run: |
|
||||
cargo install mdbook --no-default-features --features output --vers "^0.1.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user