Change workflow
Some checks failed
/ build (push) Failing after 1m39s
/ clippy (push) Successful in 1m14s

This commit is contained in:
xqtc 2024-07-12 18:04:21 +02:00
parent dd2a73e1fd
commit aa5f27e057

View file

@ -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