From 8d9f0c0fb577e2d3aa0265a0b0c0b8af56780aec Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 24 May 2023 07:57:47 -0400 Subject: [PATCH] ci: use latest OS versions and switch to dtolnay --- .github/workflows/ci.yml | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 076834a..ef988f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,46 +30,42 @@ jobs: - win-gnu include: - build: pinned - os: ubuntu-18.04 + os: ubuntu-latest rust: 1.41.1 - build: stable - os: ubuntu-18.04 + os: ubuntu-latest rust: stable - build: stable-32 - os: ubuntu-18.04 + os: ubuntu-latest rust: stable target: i686-unknown-linux-gnu - build: stable-mips - os: ubuntu-18.04 + os: ubuntu-latest rust: stable target: mips64-unknown-linux-gnuabi64 - build: beta - os: ubuntu-18.04 + os: ubuntu-latest rust: beta - build: nightly - os: ubuntu-18.04 + os: ubuntu-latest rust: nightly - build: macos os: macos-latest rust: stable - build: win-msvc - os: windows-2019 + os: windows-latest rust: stable - build: win-gnu - os: windows-2019 + os: windows-latest rust: stable-x86_64-gnu steps: - name: Checkout repository - uses: actions/checkout@v1 - with: - fetch-depth: 1 + uses: actions/checkout@v3 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - name: Use Cross if: matrix.target != '' @@ -88,7 +84,7 @@ jobs: echo "target flag is: ${{ env.TARGET }}" - name: Show CPU info for debugging - if: matrix.os == 'ubuntu-18.04' + if: matrix.os == 'ubuntu-latest' run: lscpu - name: Build @@ -136,18 +132,14 @@ jobs: rustfmt: name: rustfmt - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v1 - with: - fetch-depth: 1 + uses: actions/checkout@v3 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal components: rustfmt - name: Check formatting run: cargo fmt -- --check