Skip to content

Commit

Permalink
ci: various CI updates
Browse files Browse the repository at this point in the history
Mostly updating various "actions" and doing a little tidying.
  • Loading branch information
BurntSushi committed Jul 5, 2022
1 parent 8fa5d43 commit db8336d
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/ci.yml
Expand Up @@ -30,47 +30,45 @@ 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
with:
override: true
toolchain: ${{ matrix.rust }}
profile: minimal
override: true

- name: Install and configure Cross
if: matrix.target != ''
Expand All @@ -89,7 +87,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: Basic build
Expand Down Expand Up @@ -163,18 +161,14 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
profile: minimal
override: true
components: rustfmt
- name: Install rustfmt
run: rustup component add rustfmt
- name: Check formatting
run: |
cargo fmt --all -- --check

0 comments on commit db8336d

Please sign in to comment.