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.
  • Loading branch information
rnestler committed Jan 29, 2025
1 parent 35ca8b5 commit e87194e
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,29 @@ 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
container: rust:1.84
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.84
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

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 e87194e

Please sign in to comment.