Change workflow
This commit is contained in:
parent
dd2a73e1fd
commit
aa5f27e057
|
@ -8,37 +8,30 @@ jobs:
|
||||||
- id: checkout
|
- id: checkout
|
||||||
name: checkout
|
name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- id: setup-rust
|
- uses: https://github.com/actions-rs/toolchain@v1
|
||||||
name: setup rust
|
|
||||||
uses: https://github.com/ningenMe/setup-rustup@v1.1.0
|
|
||||||
with:
|
with:
|
||||||
rust-version: nightly
|
toolchain: nightly
|
||||||
- id: cargo-build
|
- uses: https://github.com/actions-rs/cargo@v1
|
||||||
name: cargo build
|
with:
|
||||||
run: |
|
command: build
|
||||||
cargo build
|
args: --release
|
||||||
shell: bash
|
- uses: https://github.com/actions-rs/cargo@v1
|
||||||
- id: cargo-test
|
with:
|
||||||
name: cargo test
|
command: test
|
||||||
run: |
|
args: --lib
|
||||||
cargo test --lib
|
|
||||||
shell: bash
|
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- id: checkout
|
- id: checkout
|
||||||
name: checkout
|
name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- id: setup-rust
|
- uses: https://github.com/actions-rs/toolchain@v1
|
||||||
name: setup rust
|
|
||||||
uses: https://github.com/ningenMe/setup-rustup@v1.1.0
|
|
||||||
with:
|
with:
|
||||||
rust-version: nightly
|
toolchain: nightly
|
||||||
- id: cargo-clippy
|
- uses: https://github.com/actions-rs/cargo@v1
|
||||||
name: cargo clippy
|
with:
|
||||||
run: |
|
command: clippy
|
||||||
cargo clippy --fix --lib -p glsl-lexer
|
args: --fix --lib
|
||||||
shell: bash
|
|
||||||
- id: commit
|
- id: commit
|
||||||
name: commit
|
name: commit
|
||||||
uses: https://github.com/EndBug/add-and-commit@v9
|
uses: https://github.com/EndBug/add-and-commit@v9
|
||||||
|
|
Loading…
Reference in a new issue