Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
update actions
  • Loading branch information
rob-p committed Jan 12, 2023
1 parent 129559a commit 7dd7324
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2.4.2
uses: actions/checkout@v2.6.0

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt

- name: Check format
Expand All @@ -37,7 +36,7 @@ jobs:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.4.2
- uses: actions/checkout@v2.6.0
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -51,17 +50,16 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2.4.2
uses: actions/checkout@v2.6.0

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: clippy

- name: Lint with clippy
uses: actions-rs/clippy-check@v1
uses: actions-rs-plus/clippy-check@cbcfbff5103c40b26d7077f164f0ec6052036081
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -72,7 +70,7 @@ jobs:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.4.2
- uses: actions/checkout@v2.6.0
- name: Install
run: cargo build --release
- name: sample run
Expand Down

0 comments on commit 7dd7324

Please sign in to comment.