mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
ci: Remove a bunch of actions-rs/cargo uses
This commit is contained in:
parent
f538b69759
commit
33ae498e9f
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
@ -31,9 +31,7 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Run cargo check
|
- name: Run cargo check
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test Suite
|
name: Test Suite
|
||||||
@ -61,15 +59,10 @@ jobs:
|
|||||||
restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-
|
restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-
|
||||||
|
|
||||||
- name: Run cargo test
|
- name: Run cargo test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --workspace
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --workspace
|
|
||||||
|
|
||||||
- name: Run cargo integration-test
|
- name: Run cargo integration-test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo integration-test
|
||||||
with:
|
|
||||||
command: integration-test
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -92,22 +85,13 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Run cargo fmt
|
- name: Run cargo fmt
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo fmt --all -- --check
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
|
|
||||||
- name: Run cargo clippy
|
- name: Run cargo clippy
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --workspace --all-targets -- -D warnings
|
|
||||||
|
|
||||||
- name: Run cargo doc
|
- name: Run cargo doc
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo doc --no-deps --workspace --document-private-items
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --no-deps --workspace --document-private-items
|
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: -D warnings
|
RUSTDOCFLAGS: -D warnings
|
||||||
|
|
||||||
@ -127,10 +111,7 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Generate docs
|
- name: Generate docs
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo xtask docgen
|
||||||
with:
|
|
||||||
command: xtask
|
|
||||||
args: docgen
|
|
||||||
|
|
||||||
- name: Check uncommitted documentation changes
|
- name: Check uncommitted documentation changes
|
||||||
run: |
|
run: |
|
||||||
@ -155,7 +136,4 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Generate docs
|
- name: Generate docs
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo xtask query-check
|
||||||
with:
|
|
||||||
command: xtask
|
|
||||||
args: query-check
|
|
||||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -34,10 +34,7 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Fetch tree-sitter grammars
|
- name: Fetch tree-sitter grammars
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo run --package=helix-loader --bin=hx-loader
|
||||||
with:
|
|
||||||
command: run
|
|
||||||
args: --package=helix-loader --bin=hx-loader
|
|
||||||
|
|
||||||
- name: Bundle grammars
|
- name: Bundle grammars
|
||||||
run: tar cJf grammars.tar.xz -C runtime/grammars/sources .
|
run: tar cJf grammars.tar.xz -C runtime/grammars/sources .
|
||||||
|
Loading…
Reference in New Issue
Block a user