@@ -77,27 +77,14 @@ jobs:
7777 path: target
7878 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
7979
80+ - name: Copy minimal languages config
81+ run: cp .github/workflows/languages.toml ./languages.toml
82+
8083 - name: Cache test tree-sitter grammar
8184 uses: actions/cache@v2.1.7
8285 with:
8386 path: runtime/grammars
84− key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('**/Cargo.lock') }}
85−
86− - run: cp .github/workflows/languages.toml ./languages.toml
87−
88− - name: Download test tree-sitter grammar
89− uses: actions-rs/cargo@v1
90− with:
91− use-cross: ${{ matrix.cross }}
92− command: run
93− args: -- --fetch-grammars
94−
95− - name: Build test tree-sitter grammar
96− uses: actions-rs/cargo@v1
97− with:
98− use-cross: ${{ matrix.cross }}
99− command: run
100− args: -- --build-grammars
87+ key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }}
10188
10289 - name: Run cargo test
10390 uses: actions-rs/cargo@v1