aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml48
1 files changed, 17 insertions, 31 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9fdfc46..3412b2c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,67 +12,53 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- build:
- - pinned
- - pinned-win
- - stable
- - beta
- - nightly
- - macos
- - win-msvc
- - win-gnu
include:
- build: pinned
- os: ubuntu-18.04
- rust: 1.34.0
+ os: ubuntu-latest
+ rust: 1.60.0
- build: pinned-win
- os: windows-2019
- rust: 1.34.0
+ os: windows-latest
+ rust: 1.60.0
- build: stable
- os: ubuntu-18.04
+ os: ubuntu-latest
rust: stable
- 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: hecrj/setup-rust-action@v1
+ uses: dtolnay/rust-toolchain@master
with:
- rust-version: ${{ matrix.rust }}
+ toolchain: ${{ matrix.rust }}
- run: cargo build --verbose
- run: cargo doc --verbose
- run: cargo test --verbose
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: hecrj/setup-rust-action@v1
+ uses: dtolnay/rust-toolchain@master
with:
- rust-version: stable
- - name: Install rustfmt
- run: rustup component add rustfmt
+ toolchain: stable
+ components: rustfmt
- name: Check formatting
run: |
cargo fmt --all -- --check