on master help sign in
ci: Remove a bunch of actions-rs/cargo uses
commit33ae498e9f23f8f39a41abf8d79c09fc6964c2ea authorBlaž Hrastnik <blaz@mxxn.io> dateTue 22 Nov 2022, 18:05 (4 years ago) parentf538b69
2 files changed+9−34
.github/workflows/build.yml+8−30 .github/workflows/release.yml+1−4
.github/workflows/build.yml+8−30
@@ -31,9 +31,7 @@ jobs:
3131 - uses: Swatinem/rust-cache@v1
3232
3333 - name: Run cargo check
34− uses: actions-rs/cargo@v1
35− with:
36− command: check
34+ run: cargo check
3735
3836 test:
3937 name: Test Suite
@@ -61,15 +59,10 @@ jobs:
6159 restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-
6260
6361 - name: Run cargo test
64− uses: actions-rs/cargo@v1
65− with:
66− command: test
67− args: --workspace
62+ run: cargo test --workspace
6863
6964 - name: Run cargo integration-test
70− uses: actions-rs/cargo@v1
71− with:
72− command: integration-test
65+ run: cargo integration-test
7366
7467 strategy:
7568 matrix:
@@ -92,22 +85,13 @@ jobs:
9285 - uses: Swatinem/rust-cache@v1
9386
9487 - name: Run cargo fmt
95− uses: actions-rs/cargo@v1
96− with:
97− command: fmt
98− args: --all -- --check
88+ run: cargo fmt --all -- --check
9989
10090 - name: Run cargo clippy
101− uses: actions-rs/cargo@v1
102− with:
103− command: clippy
104− args: --workspace --all-targets -- -D warnings
91+ run: cargo clippy --workspace --all-targets -- -D warnings
10592
10693 - name: Run cargo doc
107− uses: actions-rs/cargo@v1
108− with:
109− command: doc
110− args: --no-deps --workspace --document-private-items
94+ run: cargo doc --no-deps --workspace --document-private-items
11195 env:
11296 RUSTDOCFLAGS: -D warnings
11397
@@ -127,10 +111,7 @@ jobs:
127111 - uses: Swatinem/rust-cache@v1
128112
129113 - name: Generate docs
130− uses: actions-rs/cargo@v1
131− with:
132− command: xtask
133− args: docgen
114+ run: cargo xtask docgen
134115
135116 - name: Check uncommitted documentation changes
136117 run: |
@@ -155,7 +136,4 @@ jobs:
155136 - uses: Swatinem/rust-cache@v1
156137
157138 - name: Generate docs
158− uses: actions-rs/cargo@v1
159− with:
160− command: xtask
161− args: query-check
139+ run: cargo xtask query-check
.github/workflows/release.yml+1−4
@@ -34,10 +34,7 @@ jobs:
3434 - uses: Swatinem/rust-cache@v1
3535
3636 - name: Fetch tree-sitter grammars
37− uses: actions-rs/cargo@v1
38− with:
39− command: run
40− args: --package=helix-loader --bin=hx-loader
37+ run: cargo run --package=helix-loader --bin=hx-loader
4138
4239 - name: Bundle grammars
4340 run: tar cJf grammars.tar.xz -C runtime/grammars/sources .