diff options
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 |