on master help sign in
ci: Remove a bunch of actions-rs/cargo uses
33ae498Blaž Hrastnik
.github/workflows/build.yml+8−30
@@ -31,9 +31,7 @@ jobs:
31 - uses: Swatinem/rust-cache@v1
31 - uses: Swatinem/rust-cache@v1
32
32
33 - name: Run cargo check
33 - name: Run cargo check
34− uses: actions-rs/cargo@v1
35− with:
36− command: check
34+ run: cargo check
37
35
38 test:
36 test:
39 name: Test Suite
37 name: Test Suite
@@ -61,15 +59,10 @@ jobs:
61 restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-
59 restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-
62
60
63 - name: Run cargo test
61 - name: Run cargo test
64− uses: actions-rs/cargo@v1
65− with:
66− command: test
67− args: --workspace
62+ run: cargo test --workspace
68
63
69 - name: Run cargo integration-test
64 - name: Run cargo integration-test
70− uses: actions-rs/cargo@v1
71− with:
72− command: integration-test
65+ run: cargo integration-test
73
66
74 strategy:
67 strategy:
75 matrix:
68 matrix:
@@ -92,22 +85,13 @@ jobs:
92 - uses: Swatinem/rust-cache@v1
85 - uses: Swatinem/rust-cache@v1
93
86
94 - name: Run cargo fmt
87 - 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
99
89
100 - name: Run cargo clippy
90 - 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
105
92
106 - name: Run cargo doc
93 - 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
111 env:
95 env:
112 RUSTDOCFLAGS: -D warnings
96 RUSTDOCFLAGS: -D warnings
113
97
@@ -127,10 +111,7 @@ jobs:
127 - uses: Swatinem/rust-cache@v1
111 - uses: Swatinem/rust-cache@v1
128
112
129 - name: Generate docs
113 - name: Generate docs
130− uses: actions-rs/cargo@v1
131− with:
132− command: xtask
133− args: docgen
114+ run: cargo xtask docgen
134
115
135 - name: Check uncommitted documentation changes
116 - name: Check uncommitted documentation changes
136 run: |
117 run: |
@@ -155,7 +136,4 @@ jobs:
155 - uses: Swatinem/rust-cache@v1
136 - uses: Swatinem/rust-cache@v1
156
137
157 - name: Generate docs
138 - 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:
34 - uses: Swatinem/rust-cache@v1
34 - uses: Swatinem/rust-cache@v1
35
35
36 - name: Fetch tree-sitter grammars
36 - 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
41
38
42 - name: Bundle grammars
39 - name: Bundle grammars
43 run: tar cJf grammars.tar.xz -C runtime/grammars/sources .
40 run: tar cJf grammars.tar.xz -C runtime/grammars/sources .