From c81518aec7633b459d9a04ccb47f86c67f8d9ae3 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:11:56 +0200 Subject: [PATCH] update actions --- .github/workflows/lint.yml | 40 ++++++++++++----------------------- .github/workflows/release.yml | 4 ++-- 2 files changed, 16 insertions(+), 28 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a98ef5c..3a7229e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,3 @@ -# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md -# -# While our "example" application has the platform-specific code, -# for simplicity we are compiling and testing everything on the Ubuntu environment only. -# For multi-OS testing see the `cross.yml` workflow. - on: [push, pull_request] name: lint @@ -14,18 +8,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Run cargo check - uses: actions-rs/cargo@v1 - continue-on-error: true # WARNING: only for this example, remove it! + uses: clechasseur/rs-cargo@v2 + continue-on-error: true with: command: check @@ -34,18 +26,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Run cargo test - uses: actions-rs/cargo@v1 - continue-on-error: true # WARNING: only for this example, remove it! + uses: clechasseur/rs-cargo@v2 + continue-on-error: true with: command: test @@ -54,26 +44,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true components: rustfmt, clippy - name: Run cargo fmt - uses: actions-rs/cargo@v1 - continue-on-error: true # WARNING: only for this example, remove it! + uses: clechasseur/rs-cargo@v2 + continue-on-error: true with: command: fmt args: --all -- --check - name: Run cargo clippy - uses: actions-rs/cargo@v1 - continue-on-error: true # WARNING: only for this example, remove it! + uses: clechasseur/rs-cargo@v2 + continue-on-error: true with: command: clippy args: -- -D warnings diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e740018..4e8a4fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: create-release: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: taiki-e/create-gh-release-action@v1 with: draft: true @@ -29,7 +29,7 @@ jobs: os: windows-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: taiki-e/upload-rust-binary-action@v1 with: target: ${{ matrix.target }}