Skip to content

Commit

Permalink
ci: use latest OS versions and switch to dtolnay
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed May 24, 2023
1 parent fc27443 commit 8d9f0c0
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != ''
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 8d9f0c0

Please sign in to comment.