Skip to content

Commit

Permalink
Replace unmaintained/outdated github actions (#476)
Browse files Browse the repository at this point in the history
The toolchain is now installed with `dtolnay/rust-toolchain`.

Signed-off-by: Constantin Nickel <[email protected]>
  • Loading branch information
nickelc authored Feb 1, 2023
1 parent a7b8f09 commit 36acf47
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: "stable"
default: true
uses: dtolnay/rust-toolchain@stable
- name: cargo build
run: cargo build
- name: cargo test
Expand All @@ -47,12 +44,11 @@ jobs:
- "nightly"
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.channel }}
default: true
- name: cargo build
run: cargo build
- name: cargo test
Expand All @@ -66,12 +62,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env['ACTION_MSRV_TOOLCHAIN'] }}
default: true
- run: cargo build
- run: cargo test --no-run
- run: cargo build --no-default-features
Expand All @@ -83,12 +78,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }}
default: true
components: rustfmt, clippy
- name: cargo fmt (check)
run: cargo fmt --all -- --check -l
Expand All @@ -103,12 +97,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }}
default: true
- name: cargo bench (prometheus)
run: cargo bench -p prometheus
- name: cargo bench (prometheus-static-metric)
Expand Down

0 comments on commit 36acf47

Please sign in to comment.