@ -27,18 +27,21 @@ jobs:
with:
with:
path : ~/.cargo/registry
path : ~/.cargo/registry
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-registry-
- name : Cache cargo index
- name : Cache cargo index
uses : actions/cache@v2.1.7
uses : actions/cache@v2.1.7
with:
with:
path : ~/.cargo/git
path : ~/.cargo/git
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-index-
- name : Cache cargo target dir
- name : Cache cargo target dir
uses : actions/cache@v2.1.7
uses : actions/cache@v2.1.7
with:
with:
path : target
path : target
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-build-target-
- name : Run cargo check
- name : Run cargo check
uses : actions-rs/cargo@v1
uses : actions-rs/cargo@v1
@ -64,18 +67,21 @@ jobs:
with:
with:
path : ~/.cargo/registry
path : ~/.cargo/registry
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-registry-
- name : Cache cargo index
- name : Cache cargo index
uses : actions/cache@v2.1.7
uses : actions/cache@v2.1.7
with:
with:
path : ~/.cargo/git
path : ~/.cargo/git
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-index-
- name : Cache cargo target dir
- name : Cache cargo target dir
uses : actions/cache@v2.1.7
uses : actions/cache@v2.1.7
with:
with:
path : target
path : target
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-build-target-
- name : Copy minimal languages config
- name : Copy minimal languages config
run : cp .github/workflows/languages.toml ./languages.toml
run : cp .github/workflows/languages.toml ./languages.toml
@ -85,6 +91,7 @@ jobs:
with:
with:
path : runtime/grammars
path : runtime/grammars
key : ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }}
key : ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }}
restore-keys : ${{ runner.os }}-v2-tree-sitter-grammars-
- name : Run cargo test
- name : Run cargo test
uses : actions-rs/cargo@v1
uses : actions-rs/cargo@v1
@ -117,18 +124,21 @@ jobs:
with:
with:
path : ~/.cargo/registry
path : ~/.cargo/registry
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-registry-
- name : Cache cargo index
- name : Cache cargo index
uses : actions/cache@v2.1.7
uses : actions/cache@v2.1.7
with:
with:
path : ~/.cargo/git
path : ~/.cargo/git
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-index-
- name : Cache cargo target dir
- name : Cache cargo target dir
uses : actions/cache@v2.1.7
uses : actions/cache@v2.1.7
with:
with:
path : target
path : target
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-build-target-
- name : Run cargo fmt
- name : Run cargo fmt
uses : actions-rs/cargo@v1
uses : actions-rs/cargo@v1
@ -161,18 +171,21 @@ jobs:
with:
with:
path : ~/.cargo/registry
path : ~/.cargo/registry
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-registry-
- name : Cache cargo index
- name : Cache cargo index
uses : actions/cache@v2.1.6
uses : actions/cache@v2.1.6
with:
with:
path : ~/.cargo/git
path : ~/.cargo/git
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-index-
- name : Cache cargo target dir
- name : Cache cargo target dir
uses : actions/cache@v2.1.6
uses : actions/cache@v2.1.6
with:
with:
path : target
path : target
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
key : ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys : ${{ runner.os }}-v2-cargo-build-target-
- name : Generate docs
- name : Generate docs
uses : actions-rs/cargo@v1
uses : actions-rs/cargo@v1