From 80747c959b5a1163923d328a95e48059f537937d Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Mon, 10 Apr 2023 19:14:32 -0700 Subject: [PATCH] Remove dependency on actions-rs organization GitHub Actions These actions are unmaintained and use deprecated GitHub Actions technologies. See: https://github.com/artichoke/project-infrastructure/issues/265 --- .github/workflows/bench.yaml | 4 +--- .github/workflows/ci.yaml | 19 +++++-------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 6e0f24efa..1810e12f2 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -20,11 +20,9 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/build-and-test@v1 with: toolchain: nightly - profile: minimal - override: true - name: Compile run: cargo build --verbose diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 04a99950d..0cc1c08da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,10 +25,9 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/build-and-test@v1 with: toolchain: stable - profile: minimal - name: Compile run: cargo build --verbose @@ -56,11 +55,9 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/build-and-test@v1 with: toolchain: "1.47.0" - profile: minimal - override: true - name: Compile run: cargo build --verbose @@ -93,21 +90,15 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/lint-and-format@v1 with: toolchain: nightly - profile: minimal - override: true - components: rustfmt, clippy - name: Check formatting - run: cargo fmt -- --check --color=auto + run: cargo fmt --check - name: Lint with Clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --all-targets + run: cargo clippy --workspace --all-features --all-targets ruby: name: Lint and format Ruby