From bdbcce55ff7d4494f377fbb7045d572d47f7868c Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Mon, 30 Oct 2023 12:33:57 +0100 Subject: cargo update and use cargo directly in actions --- .github/workflows/pull_request.yml | 38 ++++++-------------------------------- .github/workflows/push.yml | 18 ++---------------- 2 files changed, 8 insertions(+), 48 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d7eaaf3..279e16d 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -19,21 +19,9 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.3 - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt, clippy - override: true - - - name: run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - - - name: run clippy - uses: actions-rs/cargo@v1 - with: - command: clippy + + - run: cargo check + - run: cargo clippy check-release: runs-on: ubuntu-latest @@ -42,20 +30,6 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.3 - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt, clippy - override: true - - - name: run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --release - - - name: run clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --release + + - run: cargo check --release + - run: cargo clippy --release \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 93b6edb..d41941b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -19,23 +19,9 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.3 - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt, clippy - override: true - - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --release - - - name: Run Clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --release + - run: cargo check --release + - run: cargo clippy --release build: runs-on: ubuntu-latest -- cgit v1.2.3