Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Apr 17, 2024
1 parent 9aade31 commit 3f34c46
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/cI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: Continuous Integration
on:
push:
branches:
- master
- main
pull_request:
- "**"
workflow_dispatch:
branches:
- "**"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -19,9 +23,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
components: clippy
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -35,9 +38,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
components: rustfmt
- run: cargo fmt --all --check

Expand All @@ -46,9 +48,8 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand Down

0 comments on commit 3f34c46

Please sign in to comment.