Skip to content

Commit 942db3a

Browse files
committed
cargo: MSRV and GitHub Actions
TODO: will split into individual commits
1 parent 95d5cb1 commit 942db3a

3 files changed

Lines changed: 168 additions & 12 deletions

File tree

.github/workflows/actions.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
os: ['ubuntu-latest', 'macos-latest']
1515
runs-on: ${{ matrix.os }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Build
1919
run: cargo build --verbose
2020
env:
@@ -28,7 +28,7 @@ jobs:
2828
os: ['ubuntu-latest', 'macos-latest']
2929
runs-on: ${{ matrix.os }}
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
- name: Build
3333
run: cargo build --verbose --no-default-features
3434
env:
@@ -40,8 +40,8 @@ jobs:
4040
name: Check rustfmt style && run clippy
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@v4
44-
- uses: actions-rs/toolchain@v1
43+
- uses: actions/checkout@v5
44+
- uses: dtolnay/rust-toolchain@1.79.0
4545
with:
4646
toolchain: stable
4747
profile: minimal
@@ -53,14 +53,8 @@ jobs:
5353
path: ~/.cargo/registry
5454
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
5555
- name: Run clippy
56-
uses: actions-rs/cargo@v1
57-
with:
58-
command: clippy
59-
args: --all --tests --features serialize,arbitrary
56+
run: cargo clippy --all --tests --features serialize,arbitrary
6057
env:
6158
RUSTFLAGS: -D warnings
6259
- name: Check formating
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: fmt
66-
args: --all -- --check
60+
run: cargo fmt --all -- --check

Cargo.lock

Lines changed: 161 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ authors = ["Alexis Sellier <self@cloudhead.io>"]
66
edition = "2021"
77
license = "MIT"
88
repository = "https://github.com/cloudhead/nonempty"
9+
rust-version = "1.79"
910

1011
[dependencies]
1112
serde = { features = ["derive", "alloc"], default-features = false, optional = true, version = "1" }

0 commit comments

Comments
 (0)