From aa5f27e0570ec1cc59a5c6a1e13280e5a49c477d Mon Sep 17 00:00:00 2001 From: xqtc Date: Fri, 12 Jul 2024 18:04:21 +0200 Subject: [PATCH] Change workflow --- .forgejo/workflows/uwu.yaml | 39 +++++++++++++++---------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/.forgejo/workflows/uwu.yaml b/.forgejo/workflows/uwu.yaml index f24bd04..5204dac 100644 --- a/.forgejo/workflows/uwu.yaml +++ b/.forgejo/workflows/uwu.yaml @@ -8,37 +8,30 @@ jobs: - id: checkout name: checkout uses: actions/checkout@v4 - - id: setup-rust - name: setup rust - uses: https://github.com/ningenMe/setup-rustup@v1.1.0 + - uses: https://github.com/actions-rs/toolchain@v1 with: - rust-version: nightly - - id: cargo-build - name: cargo build - run: | - cargo build - shell: bash - - id: cargo-test - name: cargo test - run: | - cargo test --lib - shell: bash + toolchain: nightly + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: build + args: --release + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: test + args: --lib clippy: runs-on: ubuntu-latest steps: - id: checkout name: checkout uses: actions/checkout@v4 - - id: setup-rust - name: setup rust - uses: https://github.com/ningenMe/setup-rustup@v1.1.0 + - uses: https://github.com/actions-rs/toolchain@v1 with: - rust-version: nightly - - id: cargo-clippy - name: cargo clippy - run: | - cargo clippy --fix --lib -p glsl-lexer - shell: bash + toolchain: nightly + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: clippy + args: --fix --lib - id: commit name: commit uses: https://github.com/EndBug/add-and-commit@v9