ci: cache fixtures

Only generate fixtures if any grammar from any parser or the parser
generation itself has changed.
This commit is contained in:
dundargoc 2024-02-17 16:03:19 +01:00 committed by dundargoc
parent 48a1f12ca3
commit d4067a6ae6
3 changed files with 36 additions and 8 deletions

View file

@ -27,10 +27,12 @@ jobs:
- name: Build CLI
run: cargo build --release
- name: Fetch fixtures
run: script/fetch-fixtures
- run: script/fetch-fixtures
- name: Generate fixtures
- uses: ./.github/actions/cache
id: cache
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: script/generate-fixtures
- name: Run main tests with undefined behaviour sanitizer (UBSAN)