diff options
author | Blaž Hrastnik | 2022-11-22 09:05:29 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-11-22 09:08:11 +0000 |
commit | 33ae498e9f23f8f39a41abf8d79c09fc6964c2ea (patch) | |
tree | 901f56f9fd9329be3d1ff21b517aa7705854981f /.github/workflows | |
parent | f538b697597dccdd2492606858f0976c7cf7e4d2 (diff) |
ci: Remove a bunch of actions-rs/cargo uses
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 38 | ||||
-rw-r--r-- | .github/workflows/release.yml | 5 |
2 files changed, 9 insertions, 34 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15734361..e6b319f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,9 +31,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check + run: cargo check test: name: Test Suite @@ -61,15 +59,10 @@ jobs: restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars- - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace + run: cargo test --workspace - name: Run cargo integration-test - uses: actions-rs/cargo@v1 - with: - command: integration-test + run: cargo integration-test strategy: matrix: @@ -92,22 +85,13 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --workspace --all-targets -- -D warnings + run: cargo clippy --workspace --all-targets -- -D warnings - name: Run cargo doc - uses: actions-rs/cargo@v1 - with: - command: doc - args: --no-deps --workspace --document-private-items + run: cargo doc --no-deps --workspace --document-private-items env: RUSTDOCFLAGS: -D warnings @@ -127,10 +111,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Generate docs - uses: actions-rs/cargo@v1 - with: - command: xtask - args: docgen + run: cargo xtask docgen - name: Check uncommitted documentation changes run: | @@ -155,7 +136,4 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Generate docs - uses: actions-rs/cargo@v1 - with: - command: xtask - args: query-check + run: cargo xtask query-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7aca89b..8e805de2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,10 +34,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Fetch tree-sitter grammars - uses: actions-rs/cargo@v1 - with: - command: run - args: --package=helix-loader --bin=hx-loader + run: cargo run --package=helix-loader --bin=hx-loader - name: Bundle grammars run: tar cJf grammars.tar.xz -C runtime/grammars/sources . |