ci: cache build artifacts (#124)
Some checks failed
CI / Lint (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Corpus test (push) Has been cancelled
CI / Generate schema (push) Has been cancelled

This commit is contained in:
Riley Bruins 2025-05-14 20:20:30 -07:00 committed by GitHub
parent 2978ccb87a
commit 40bdb7ee68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,14 @@ jobs:
id: toolchain
with:
components: clippy
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
- run: cargo clippy --tests --no-deps -- -D warnings
format:
@ -41,6 +49,14 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.86.0
id: toolchain
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
- run: cargo test
corpus:
@ -54,6 +70,14 @@ jobs:
- uses: tree-sitter/setup-action/cli@v1
- uses: dtolnay/rust-toolchain@1.86.0
id: toolchain
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
- name: Compile
run: |
@ -99,6 +123,14 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.86.0
id: toolchain
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
- name: Check schema generation
run: |
# Generate schema