From 0e48f3de10fee755e22a8ddb37843d90e47b25aa Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sun, 16 Apr 2023 00:17:33 +0900 Subject: [PATCH 1/5] Drop support for `x86_64-pc-windows-gnu` --- .github/workflows/ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 038a5d1..f8f348f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,16 +40,12 @@ jobs: fail-fast: false matrix: toolchain: - # `x86_64-pc-windows-gnu` is tier 1 **for now**. - 1.42.0-x86_64-pc-windows-msvc - - 1.42.0-x86_64-pc-windows-gnu - 1.42.0-x86_64-apple-darwin - 1.42.0-x86_64-unknown-linux-gnu include: - toolchain: 1.42.0-x86_64-pc-windows-msvc os: windows-latest - - toolchain: 1.42.0-x86_64-pc-windows-gnu - os: windows-latest - toolchain: 1.42.0-x86_64-apple-darwin os: macOS-latest - toolchain: 1.42.0-x86_64-unknown-linux-gnu From c4bc0212ab47c99a3eb4b1a0e79ae6f2a62a352e Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sun, 16 Apr 2023 00:18:28 +0900 Subject: [PATCH 2/5] Bump `runs-on` --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8f348f..e28a831 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: rustfmt: name: Rustfmt - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - name: Checkout @@ -45,11 +45,11 @@ jobs: - 1.42.0-x86_64-unknown-linux-gnu include: - toolchain: 1.42.0-x86_64-pc-windows-msvc - os: windows-latest + os: windows-2022 - toolchain: 1.42.0-x86_64-apple-darwin - os: macOS-latest + os: macos-11 - toolchain: 1.42.0-x86_64-unknown-linux-gnu - os: ubuntu-18.04 + os: ubuntu-22.04 name: ${{ matrix.toolchain }} runs-on: ${{ matrix.os }} From a2ae812cc763a6654c38eb8aadeadce356290d3a Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 15 Apr 2023 23:31:43 +0900 Subject: [PATCH 3/5] Bump actions/checkout and actions/setup-python --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e28a831..c07d9a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup 1.42.0-x86_64-unknown-linux-gnu uses: actions-rs/toolchain@v1 @@ -60,7 +60,7 @@ jobs: if: matrix.os == 'windows-latest' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup ${{ matrix.toolchain }} uses: actions-rs/toolchain@v1 @@ -71,7 +71,7 @@ jobs: components: clippy - name: Setup Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: '3.8' From 95136656ce1b9f34b33ee4d0cf1c5d07ae7ce3db Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 15 Apr 2023 23:48:08 +0900 Subject: [PATCH 4/5] Get rid of actions-rs --- .github/workflows/ci.yml | 48 +++++++++++----------------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c07d9a2..ac8b67a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,25 +15,17 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Setup 1.42.0-x86_64-unknown-linux-gnu - uses: actions-rs/toolchain@v1 + - name: Set up Rust + uses: dtolnay/rust-toolchain@master with: toolchain: 1.42.0-x86_64-unknown-linux-gnu - override: true - profile: minimal components: rustfmt - name: '`cargo fmt -- --check`' - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check + run: cargo fmt -- --check - name: '`cargo fmt --manifest-path ./xtask/Cargo.toml -- --check`' - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path ./xtask/Cargo.toml -- --check + run: cargo fmt --manifest-path ./xtask/Cargo.toml -- --check build: strategy: @@ -63,44 +55,30 @@ jobs: uses: actions/checkout@v3 - name: Setup ${{ matrix.toolchain }} - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - override: true - profile: minimal components: clippy + - name: '`rustup override set ${{ matrix.toolchain }}`' + run: rustup override set ${{ matrix.toolchain }} + - name: Setup Python 3.8 uses: actions/setup-python@v4 with: python-version: '3.8' - name: '`cargo clippy --all-targets --profile test -- -D warnings`' - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets --profile test -- -D warnings + run: cargo clippy --all-targets --profile test -- -D warnings - name: '`cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings`' - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --manifest-path ./xtask/Cargo.toml -- -D warnings + run: cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings - name: '`cargo test --all-targets --no-fail-fast`' - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-targets --no-fail-fast + run: cargo test --all-targets --no-fail-fast - name: '`cargo run --release`' - uses: actions-rs/cargo@v1 - with: - command: run - args: --release + run: cargo run --release - name: '`cargo xtask test-examples`' - uses: actions-rs/cargo@v1 - with: - command: xtask - args: test-examples + run: cargo xtask test-examples From 0f14ed3ed7731de62691bac442c0c6159fbe3595 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 15 Apr 2023 23:54:26 +0900 Subject: [PATCH 5/5] Use rust-cache --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac8b67a..51348d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,6 +68,9 @@ jobs: with: python-version: '3.8' + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + - name: '`cargo clippy --all-targets --profile test -- -D warnings`' run: cargo clippy --all-targets --profile test -- -D warnings pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy