diff options
author | Michael Davis | 2022-02-14 23:36:02 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-10 08:31:57 +0000 |
commit | db3470d973ed97445d180c18035c2858e4749782 (patch) | |
tree | ed79d7cd3c84b1546ea690c98c52611ea815af58 /.github/workflows/build.yml | |
parent | 8081e9f0520819309fef9a3df7cad8df24126a28 (diff) |
ensure rust grammar is available in CI
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 659c9c78..e0eb5322 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,8 +14,6 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v3 - with: - submodules: true - name: Install stable toolchain uses: actions-rs/toolchain@v1 @@ -53,8 +51,6 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v3 - with: - submodules: true - name: Install stable toolchain uses: actions-rs/toolchain@v1 @@ -81,6 +77,28 @@ jobs: path: target key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + - name: Cache test tree-sitter grammar + uses: actions/cache@v2.1.7 + with: + path: runtime/grammars + key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('**/Cargo.lock') }} + + - run: cp .github/workflows/languages.toml ./languages.toml + + - name: Download test tree-sitter grammar + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.cross }} + command: run + args: -- --fetch-grammars + + - name: Build test tree-sitter grammar + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.cross }} + command: run + args: -- --build-grammars + - name: Run cargo test uses: actions-rs/cargo@v1 with: @@ -97,8 +115,6 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v3 - with: - submodules: true - name: Install stable toolchain uses: actions-rs/toolchain@v1 @@ -144,8 +160,6 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v3 - with: - submodules: true - name: Install stable toolchain uses: actions-rs/toolchain@v1 |