Skip to content

Commit

Permalink
Stop using deprecated or unmaintained CI dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
LingMan authored Aug 26, 2022
1 parent 466791b commit f95c35c
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,27 @@ env:

jobs:
check:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
target: x86_64-pc-windows-gnu
targets: x86_64-pc-windows-gnu
components: clippy, rustfmt

- name: Run checks
env:
CLIPPY_OPTS: --all-targets -- --allow clippy::len_without_is_empty --allow clippy::missing_safety_doc
run: |
cargo fmt -- --check
cargo fmt --check
cargo clippy $CLIPPY_OPTS
cargo clippy --target x86_64-pc-windows-gnu $CLIPPY_OPTS
test-win:
runs-on: windows-2019
runs-on: windows-latest
strategy:
matrix:
target:
Expand All @@ -40,23 +39,28 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set default target
run: rustup default stable-${{ matrix.target }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable-${{ matrix.target }}

- name: Run tests
run: cargo test --all-features

test-macos-catalina:
runs-on: macos-10.15
test-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run tests
run: cargo test --all-features

test-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
target:
Expand All @@ -66,8 +70,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set default target
run: rustup default stable-${{ matrix.target }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable-${{ matrix.target }}

- name: Install multilib
if: ${{ matrix.target == 'i686-unknown-linux-gnu' }}
Expand All @@ -77,34 +83,27 @@ jobs:
run: cargo test --all-features

check-stub:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
target: wasm32-unknown-unknown
override: true
targets: wasm32-unknown-unknown

- name: Run check
run: cargo check --all-features --target wasm32-unknown-unknown

test-msrv:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.36.0
profile: minimal
override: true
uses: dtolnay/rust-toolchain@1.36.0

- name: Run tests
run: cargo test --all-features

0 comments on commit f95c35c

Please sign in to comment.