Skip to content

Commit

Permalink
ci: migrate to dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Dec 10, 2023
1 parent e1035bc commit 5b3b19e
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: run cargo doc
run: cargo doc

Expand All @@ -51,11 +50,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: run cargo test
run: cargo test --all-features

Expand All @@ -64,29 +61,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1

- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true

- name: install armv7 target
run: rustup target add armv7-unknown-linux-musleabihf
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --release --target armv7-unknown-linux-musleabihf tests::kdbx4_entry --all-features

- name: Install cross
run: |
cargo install cross
- run: |
cross test --release --target armv7-unknown-linux-musleabihf tests::kdbx4_entry --all-features
formatting:
name: Code Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: running rustfmt
run: |
files=$(find . -name '*.rs')
Expand Down

0 comments on commit 5b3b19e

Please sign in to comment.