CI: Use separate shards cache for lint step

Ameba could be built with an older version of Crystal that follows
a different set of formatting rules than the latest version causing
the Lint/Formatting rule to fail when in actuality the code is actually
compliant with the formatting rules in the latest version of Crystal
This commit is contained in:
syeopite 2025-01-20 16:39:33 -08:00
parent e1378702af
commit 097b4f0433
No known key found for this signature in database
GPG key ID: A73C186DA3955A1A

View file

@ -136,6 +136,7 @@ jobs:
submodules: true
- name: Install Crystal
id: lint_step_install_crystal
uses: crystal-lang/install-crystal@v1.8.0
with:
crystal: latest
@ -146,7 +147,7 @@ jobs:
path: |
./lib
./bin
key: shards-${{ hashFiles('shard.lock') }}
key: shards-${{ hashFiles('shard.lock') }}-${{ steps.lint_step_install_crystal.outputs.crystal }}
- name: Install Shards
run: |