Skip to content

Commit

Permalink
Don't use deprecated actions-rs build steps
Browse files Browse the repository at this point in the history
The whole organization is archived. The clippy-check will be kept, since
it publishes warnings as GitHub warnings which we'd need to fix
otherwise.
  • Loading branch information
rnestler committed Jan 29, 2025
1 parent 35ca8b5 commit d46b59d
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,16 @@ jobs:

build_and_test:
name: Build and test
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container: rust:1.70
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.70
override: true
- name: Run build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
- name: Run test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- run: cargo build --all-features
- run: cargo test --all-features

clippy:
name: Clippy
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -42,12 +31,9 @@ jobs:

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container: rust:1.84
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.84
components: rustfmt
override: true
- run: rustup component add rustfmt
- run: cargo fmt -- --check

0 comments on commit d46b59d

Please sign in to comment.